Getting Started with Web Hive Framework¶
Welcome to the documentation for Web Hive Framework - a PHP-based Model-View-Controller (MVC) framework that is designed to help you build web applications quickly and easily.
Overview¶
Web Hive Framework is built around the MVC architecture and consists of the following core components:
- Models: Models are used to represent the data and business logic of your application.
- Views: Views are used to display the data to the user.
- Controllers: Controllers are used to handle user input and interact with the models and views.
In addition to these core components, Web Hive Framework also includes a number of built-in features and tools that can help you build your application quickly and easily.
Prerequisites¶
Before you start using Web Hive Framework, you will need to have the following prerequisites installed on your system:
- PHP 7.0 or higher
- A database server (MySQL, PostgreSQL, SQLite, etc.)
- A web server (Apache, Nginx, etc.)
Installation¶
To install Web Hive Framework, follow these steps:
-
Download the latest version of Web Hive Framework from the official website or from the Github repository.
-
Unzip the downloaded file into your web server's document root directory. If you're using Apache, this is typically the
htdocs
directory. -
Open the
core/app.php
file in a text editor and modify the following settings:APP_NAME
: Change this to the name of your application.APP_FOLDER
: Change this to the path of the root directory of your application relative to the location ofautoload.php
.APP_URL
: Change this to the URL of your application.APP_DEBUG
: Change this totrue
if you want to enable debug mode orfalse
if you want to disable it.
-
Open the
core/database.php
file in a text editor and modify the following settings:DB_CONNECTION
: Change this to the type of database you're using (e.g. mysql, postgres, sqlite).DB_HOST
: Change this to the hostname of your database server.DB_PORT
: Change this to the port number of your database server (e.g. 3306 for MySQL).DB_NAME
: Change this to the name of your database.DB_USER
: Change this to the username for your database.DB_PASS
: Change this to the password for your database.
-
Create your
DB_NAME
database. -
Open a web browser and navigate to the URL where you installed Web Hive Framework. You should see the default welcome page of the framework.
Congratulations! You have successfully installed Web Hive Framework.
Next Steps¶
Now that you have installed Web Hive Framework, you can start building your web application. The following resources are available to help you get started:
- Read the documentation to learn more about the framework and its features.
- Check out the examples to see how to use Web Hive Framework in practice.
- Join the community forum to ask questions and get help from other developers.
Thank you for choosing Web Hive Framework! We hope you enjoy using it to build your web applications.