abenevaut / yafarel
Yet another YAF framework
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:project
Requires
- php: ^8.1
- ext-yaf: ^3.1
- filp/whoops: ^2.15
- illuminate/database: ^10.7
- illuminate/events: ^10.7
- monolog/monolog: ^3.3
- nesbot/carbon: ^2.66
- nunomaduro/collision: ^7.5
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2024-04-06 17:11:29 UTC
README
Description
This is a simple YAF framework to start a new project.
Setup PHP YAF extension
[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>
Setup Http server
See example at https://www.php.net/manual/en/class.yaf-router.php
Setup the framework
cp app.ini.example app.ini
composer install
Setup the database
Note that you can have multiple database connections.
The main one should be named default
.
MySQL
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>"
SQLite
// <string: db name> could be "default" or "whatever"
database.<db name>.driver = "mysql"
database.<db name>.database = "<path to database.sqlite>"
Command line interface
Convenient commands to help you in terminal. Wink to @laravel
Commands list
php artisan migrate
php artisan db:seed
Testing
vendor/bin/phpunit