mizmoz / app
Mizmoz App
1.0.1
2024-09-27 11:06 UTC
Requires
- php: >=8.3
- mizmoz/config: ^1.0
- mizmoz/container: ^2.0
- mizmoz/router: ^1.0
- symfony/console: ^7.0
- tracy/tracy: ^2.4
Requires (Dev)
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2024-09-27 11:07:02 UTC
README
目标
- 轻量级,我们只会处理API请求
- 尽可能使用PHP-FIG
- 非常具有意见性(我讨厌样板代码)
- 同时处理HTTP和CLI
// Use an index file for all configs $config = new Config('./configs/index.php'); // At it's most basic App::run($config);
项目结构
/App
/Http
/App.php - HTTP Application
/routes.php - contains all HTTP route definitions
/Cli
/App.php - CLI Application
/commands.php - contains all console commands
/Command
/config
/public
/tests