Minimal php framework for easy application development. Inspired a little by Symfony, powered by twig.
- Apache server
- PHP 7
- Composer
- MySQL (optionnal)
- Clone the repository
- Change the application name in
config/general.conf
and rename your folder the same. - Install dependencies
composer install
- Define your routes in
config/routes.conf
That's all folks!
config/database.conf
[database]
driver = "mysql"
host = "localhost"
dbname = "db"
username = "root"
password = ""
$databaseDriver = new \Core\DatabaseDriver();
config/database.conf
[databases]
firstDatabase[driver] = "mysql"
firstDatabase[host] = "localhost"
firstDatabase[dbname] = "firstDatabase"
firstDatabase[username] = "root"
firstDatabase[password] = ""
secondDatabase[driver] = "mysql"
secondDatabase[host] = "localhost"
secondDatabase[dbname] = "secondDatabase"
secondDatabase[username] = "root"
secondDatabase[password] = ""
$firstDatabaseDriver = new \Core\DatabaseDriver('firstDatabase');
$secondDatabaseDriver = new \Core\DatabaseDriver('secondDatabase');