This is a simple YAF framework to start a new project.
[yaf]
;
; https://www.php.net/manual/fr/yaf.configuration.php
;
yaf.use_spl_autoload=On
yaf.cache_config=<On / Off>
yaf.use_namespace=On
yaf.environ=<recommanded: local or production - this choice impact `app.ini` sections>
See example at https://www.php.net/manual/en/class.yaf-router.php
cp app.ini.example app.ini
composer install
Note that you can have multiple database connections.
The main one should be named default
.
database.<db name>.driver = "mysql"
database.<db name>.host = "<host>"
database.<db name>.database = "<database>"
database.<db name>.username = "<username>"
database.<db name>.password = "<password>"
// <string: db name> could be "default" or "whatever"
database.<db name>.driver = "mysql"
database.<db name>.database = "<path to database.sqlite>"
Convenient commands to help you in terminal. Wink to @laravel
php artisan about
XDEBUG_MODE=coverage vendor/bin/phpunit
docker tag abenevaut/yaf-cms:test ghcr.io/abenevaut/yaf-cms:latest-php83-testing
docker publish ghcr.io/abenevaut/yaf-cms:latest-php83-testing