abenevaut/yafarel
最新稳定版本:0.0.2
Composer 安装命令:
composer create-project abenevaut/yafarel
包简介
Yet another YAF framework
README 文档
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 about
Testing
XDEBUG_MODE=coverage vendor/bin/phpunit
Build
docker tag abenevaut/yaf-cms:test ghcr.io/abenevaut/yaf-cms:latest-php83-testing docker publish ghcr.io/abenevaut/yaf-cms:latest-php83-testing
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-04-23