Download a base for begin a new project based on Umbrella Framework
Works with MVC PHP Concept
To make the framework works, you have to install some dependencies, which are Composer, AltoRouter, Alto Dispatcher. And I always recommand Var Dumper to make Dumps more complete, and Dump and Die for an easier debug.
Steps All these commands in a shell on the root of your project
- Install Composer
composer require composer/composer - Install Alto Router
composer require altorouter/altorouter - Install Alto Dispatcher
composer require benoclock/alto-dispatcher - If you want Var Dumper
composer require symfony/var-dumper - Then go in the
composer.jsonjust made in your project, and after the dependencies, add this code for the namespaces:
"autoload": {
"psr-4": {"App\\": "app/"}
}
Think to add the namespace at the begin of your pages ( Models, Controllers)
- And to finish the config, make this command :
composer dump-autoload - Don't forget to work with PHP Server on port 8080. You can use the server.sh
- Make your config.ini, you have a model, just update it to connect you DB
- Then you just have to start ^_^