mpociot / laravel-apidoc-generator
Generate beautiful API documentation from your Laravel application
Installs: 2 963 394
Dependents: 13
Suggesters: 0
Security: 0
Stars: 3 444
Watchers: 67
Forks: 612
Open Issues: 56
Requires
- php: >=7.2.0
- ext-json: *
- fzaninotto/faker: ^1.8
- illuminate/console: ^5.7|^6.0|^7.0
- illuminate/routing: ^5.7|^6.0|^7.0
- illuminate/support: ^5.7|^6.0|^7.0
- league/flysystem: ^1.0
- mpociot/documentarian: ^0.4.0
- mpociot/reflection-docblock: ^1.0.1
- nunomaduro/collision: ^3.0|^4.0
- ramsey/uuid: ^3.8|^4.0
- symfony/var-exporter: ^4.0|^5.0
Requires (Dev)
- dms/phpunit-arraysubset-asserts: ^0.1.0
- laravel/lumen-framework: ^5.7|^6.0|^7.0
- league/fractal: ^0.19.0
- orchestra/testbench: ^3.7|^4.0|^5.0
- phpstan/phpstan: ^0.11.15
- phpunit/phpunit: ^8.0
Suggests
- league/fractal: Required for transformers support
- dev-master
- v5.x-dev
- v4.x-dev
- 4.8.2
- 4.8.1
- 4.8.0
- 4.7.0
- 4.6.0
- 4.5.1
- 4.5.0
- 4.4.3
- 4.4.2
- 4.4.1
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-rc1
- 4.0.0-alpha
- 3.x-dev
- 3.17.1
- 3.17.0
- 3.16.3
- 3.16.2
- 3.16.1
- 3.16.0
- 3.15.1
- 3.15.0
- 3.14.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.7.0
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.2.0
- 0.1.0
- dev-fix-rebuild
This package is auto-updated.
Last update: 2024-12-22 21:54:00 UTC
README
Automatically generate your API documentation from your existing Laravel/Lumen/Dingo routes.
php artisan apidoc:generate
Installation
PHP 7.2 and Laravel/Lumen 5.7 or higher are required.
If your application does not meet these requirements, you can check out the 3.x branch for older releases.
composer require --dev mpociot/laravel-apidoc-generator
Laravel
Publish the config file by running:
php artisan vendor:publish --provider="Mpociot\ApiDoc\ApiDocGeneratorServiceProvider" --tag=apidoc-config
This will create an apidoc.php
file in your config
folder.
Lumen
- When using Lumen, you will need to run
composer require mpociot/laravel-apidoc-generator
instead. - Register the service provider in your
bootstrap/app.php
:
$app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);
- Copy the config file from
vendor/mpociot/laravel-apidoc-generator/config/apidoc.php
to your project asconfig/apidoc.php
. Then add to yourbootstrap/app.php
:
$app->configure('apidoc');
Documentation
Check out the documentation at the Beyond Code homepage.
License
The Laravel API Documentation Generator is free software licensed under the MIT license.