It is basically a fresh setup of web application based on C Phalcon PHP framework. It provides multi-module configuration, all the features which are part of the framework and Docker setup (based on Alpine) for both: dev and prod environments.
- PHP 7.3 with composer
- C Phalcon PHP framework 3.4
- NGINX 1.15 web server
- Make >= 4.1
- Docker >= 17.05 with compose >= 1.18
- Make >= 4.1
- PHP >= 7.2 with composer
- C Phalcon PHP framework ^3.4
- NGINX or Apache web server
Just clone the repository and customize the application to yourself.
You can register new modules and DI services (global) in ./app/Kernel.php. It's also possible to register DI services inside the given module. Just follow the example in ./src/App/App.php.
You can add new parameters in .env
and .env.dist
files, then register them in ./app/config/parameters.php.
You might want to use my Docker setup as well. You will find all the important commands in ./Makefile (development) and ./Makefile.prod files.
In other case you have to setup the environment by yourself. You can find the requirements above.
- Clone the repository and navigate to the project root
- Create
.env
file based on.env.dist
and fill the parameters - Execute
make build
and let Docker build the images for you - Execute
make up
to run the containers
Note: you may need to run
make composer
to fetch vendors in dev environment especially if your're doing it for the first time
- Application should be accessible at http://127.0.0.1:9460