- Routing
- Console
- Middleware
- Dependency Injection
- Response for RESTful APIs https://github.com/harryosmar/php-restful-api-response
- php >= 7.0
- composer https://getcomposer.org/download/
git clone git@github.com:harryosmar/php-bootstrap.git
cd php-bootstrap
composer install
or just download the latest release
Show Task List
php console.php list
Run Task php launcher.php {taskname}
php console.php app:helloworld
Open endpoints url
php -S localhost:8000 -t public
then open http://localhost:8000 in your browser
composer test
- Fork this repo
- post an issue https://github.com/harryosmar/php-bootstrap/issues
- create the PR(Pull Request) and wait for the review
- add your new route in route collections https://github.com/harryosmar/php-bootstrap/blob/master/src/Routes.php
- Follow documentation here : how to create new console task
- add your console task file to this folder https://github.com/harryosmar/php-bootstrap/tree/master/src/Console
- then register your console task in https://github.com/harryosmar/php-bootstrap/blob/master/src/Tasks.php