mhauri / laravel-api-bundle
Laravel API Bundle
Requires
- php: ^7.4|^8.0||^8.1||^8.2
- ext-json: *
- laravel/framework: ^8.0|^9.0|^10.0|^11.0
- zircote/swagger-php: ^3.2|^4.9
Requires (Dev)
- overtrue/phplint: ^3.0
- phpbench/phpbench: ^1.1
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
README
This package is meant to provide you, with a set of tools to help you easily and quickly build your own Laravel API. While the goal of this package is to remain as flexible as possible it still won't cover all situations and solve all problems.
Installation
composer require mhauri/laravel-api-bundle
If you'd like to make configuration changes in the configuration file you can publish it with the following Artisan command (otherwise, this step is not needed):
php artisan vendor:publish --provider="MHauri\ApiBundle\Providers\ApiServiceProvider"
Replace the default RouteServiceProvider
In config/app.php
replace:
App\Providers\RouteServiceProvider::class,
with:
MHauri\ApiBundle\Providers\ApiRouteServiceProvider::class,
Issues
If you have any issues with this project, open an issue on GitHub.
Contribution
Any contribution is highly appreciated. The best way to contribute is to open a pull request on GitHub.
Developer
Marcel Hauri, and all other contributors