mizmoz / app
Mizmoz App
0.1.1
2018-05-06 13:34 UTC
Requires
- php: >=7.1
- mizmoz/config: ^0.4.0
- mizmoz/container: ^1.3
- mizmoz/router: ^0.5.0
- ralouphie/getallheaders: ^2.0
- symfony/console: ^3.3
- tracy/tracy: ^2.4
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2024-04-21 05:44:53 UTC
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