mpociot/laravel-apidoc-generator
Generate API docs automatically from your existing Laravel, Lumen, or Dingo routes. Run php artisan apidoc:generate to produce up-to-date documentation from code and routes, with configurable output via an apidoc.php config file.
git push (e.g., deploy to GitHub Pages or internal wiki).Adopt if:
Look elsewhere if:
darkaonline/l5-swagger)."This package automates API documentation generation for our Laravel/Lumen APIs, saving 20–30 hours/month in manual updates. By tying docs directly to code (via docblocks), we ensure accuracy and reduce technical debt. It also generates Postman collections and HTML docs—key for developer onboarding and partner integrations. The MIT license and open-source community mitigate risks, while the plugin system lets us customize it for our needs. Upfront cost: zero (open-source); ROI: faster releases and fewer support tickets from undocumented APIs."
*"This replaces our ad-hoc API docs with a zero-configuration, code-first approach:
composer require mpociot/laravel-apidoc-generator (5 mins).php artisan apidoc:generate (outputs HTML/Postman)./v1/users API and compare output to current docs."**"Stop writing Markdown by hand! This tool:
@group Users) for organized navigation./**
* @group Users
* @bodyParam name string Required. User's full name.
*/
public function store(Request $request) { ... }
Run php artisan apidoc:generate, and boom—docs are ready. Try it on your PR branch first!"*
How can I help you explore Laravel packages today?