Description
Laravel IDoc is a package that generates interactive API documentation from your existing Laravel routes. It is inspired by the laravel-apidoc-generator, ReDoc and the OpenAPI initiative. It also produces an OpenAPI 3.0 spec file, so the same documentation can be used by other tools. You install it with Composer, and then publish the config file with a single artisan command, which creates an idoc.php file in your config folder. For Lumen, you register the service provider in bootstrap/app.php and copy the config file. The package needs PHP 7 and Laravel 5.5 or higher at minimum. Documentation is built from your code, with groups for endpoints, request parameters, auth status and example responses. The output uses a responsive three-panel design, with the menu and scrolling kept in sync, and nested objects are shown interactively. Automatic code samples are supported, and you can add an introduction to the side menu, group endpoints at a high level, and customise branding. The package is built to be extended for different use cases, and it supports server-side rendering.…
Highlights
- Interactive API docs generated from existing Laravel routes
- OpenAPI 3.0 spec file output alongside the docs
- Responsive three-panel layout with synced menu and scrolling
- Automatic code samples and interactive nested objects
- Works with Laravel 5.5+ and Lumen, with branding options
Ratings & Reviews
No ratings yet
Be the first to rate Idoc.
People also visit
Idoc FAQ
What is IDoc?
IDoc is a Laravel package that generates interactive API documentation from your routes and codebase. It can also write an OpenAPI 3.0 spec file.
How do I install it?
Run composer require ovac/idoc, then publish the config with php artisan vendor:publish --tag=idoc-config. For Lumen, register the service provider in bootstrap/app.php.
Which versions does it support?
PHP 7 and Laravel 5.5 or higher are the minimum dependencies. The package also works with Lumen.
Does it support OpenAPI?
Yes. It supports OpenAPI 3.0 and generates an OpenAPI 3.0 spec file, with the widest OpenAPI v2.0 feature support noted on the site.
Can I customise the output?
Yes. You can add an introduction to the side menu, group endpoints, add request parameters and example responses, and change the branding.
What are the best Idoc alternatives?
Popular alternatives to Idoc include DocPIlot, Laravel Openapi and Chappe. See all Idoc alternatives















