MiniApiBase is a PHP Experts, Inc., Project meant to ease the creation of new API projects.
It strives to conform to the Standard PHP Skeleton (https://github.com/php-pds/skeleton) wherever possible.
Read On Structuring PHP Projects for more.
The configurer was inspired by https://www.binpress.com/building-project-skeletons-composer/
It includes everything you need for a modern lightweight PHP API server:
- Minimum PHP version of v8.1.
- minicli/minicli (PHP Experts' fork)
- pecee/simple-router
- phpexperts/console-painter
- phpexperts/laravel-env-polyfill
- phpexperts/rest-speaker
- phpexperts/simple-dto
Via Composer
composer create-project phpexperts/mini-api-base api.my.siteInstall a project, then remove the directories you won't need, like bin.
You should definitely edit the LICENSE to be specific to your project and update the tags at the top of the README.md.
✔ Rapidly start up a project right.
✔ Less time spent on boilerplating a git repo.
✔ Conforms to the most widely-deployed PHP layout.
✔ Fully compatible with the Bettergist Collective recommendation.
phpunit --testdoxTheodore R. Smith theodore@phpexperts.pro
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.
MIT license. Please see the license file for more information.