This is an example application that intends to demonstrate the basic features from Hyperf.
Run the following command to install the dependencies inside the Docker container:
docker-compose run --rm hyperf composer install
Copy the .env.example
file to .env
and fill in the database credentials:
cp .env.example .env
Use the following commands to create the database container and run the migrations:
docker-compose up -d mysql
docker-compose run --rm hyperf php bin/hyperf.php migrate
Now, to run the application, use the following command:
docker-compose up -d hyperf
Note: In the next times, you'll only need to run
docker-compose up -d
to start the application.
You can check the application routes on the routes.php file. On the dependencies.php file, you'll find the configuration for the dependency injection.
It is important to check the migrations folder too, as it contains the database structure.
The files inside the app folder follow the structure you'd see in a regular MVC application: there is a folder for the controllers, a folder for the models etc.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.