mizmoz / app
Mizmoz App
1.0.2
2024-09-30 01:05 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
README
Aims
- Be lightweight, we'll only be serving API requests
- Use PHP-FIG where possible
- Be very opinionated (I hate boilerplate)
- Handle both HTTP and CLI
// Use an index file for all configs $config = new Config('./configs/index.php'); // At it's most basic App::run($config);
Project Structure
/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