Skip to content

An example application to demonstrate the Hyperf's features.

License

Notifications You must be signed in to change notification settings

lucasdotvin/hyperfeste

Repository files navigation

Hyperfeste

GitHub PHP 8.1

About

This is an example application that intends to demonstrate the basic features from Hyperf.

Installation

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.

Relevant Files

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.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

An example application to demonstrate the Hyperf's features.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published