Download the PHP package piovezanfernando/laravel-api-auto-docs without Composer
On this page you can find all versions of the php package piovezanfernando/laravel-api-auto-docs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download piovezanfernando/laravel-api-auto-docs
More information about piovezanfernando/laravel-api-auto-docs
Files in piovezanfernando/laravel-api-auto-docs
Package laravel-api-auto-docs
Short Description Automatically generate Laravel API documentation from request rules, controllers and routes
License MIT
Homepage https://github.com/piovezanfernando/laravel-api-auto-docs
Informations about the package laravel-api-auto-docs
Laravel API Auto Docs
The Hassle-Free automatic API documentation generation for Laravel.
A Swagger alternative with modern Vue 3 interface.
Supports Open API 3.0.0
Features
- ✨ Light and Dark mode
- 🚀 Automatic rules fetching from injected Request and by regexp
- 📋 Automatic routes fetching from Laravel Routes
- 📝 Support for Laravel logs
- 🗃️ Support for SQL query and query time analysis
- ⚡ Support for memory consumption
- 🔐 Support for Authorization Headers
- 🎯 Support for Eloquent events
- 🔄 Support for OpenAPI 3.0.0 exports
- 🎨 Modern Vue 3 interface
Requirements
- PHP >= 8.3
- Laravel 11.x | 12.x | 13.x
Installation
You can install the package via composer:
Publish the config file:
Configuration
The configuration file will be published to config/api-auto-docs.php. Here you can configure:
- Routes to document
- Middleware to apply
- UI customizations
- And more...
Usage
Accessing the Documentation
By default, the documentation is available at:
Generating OpenAPI Specification
To generate the OpenAPI specification file:
This will create an api.json file in your project's root directory by default. You can specify a different path:
Adding Descriptions to Controllers
The package automatically reads the summary and description from your controller methods' PHPDoc comments.
Request Validation
The package automatically reads Laravel FormRequest validation rules:
Configuration Options
Exclude Routes
In config/api-auto-docs.php:
Middleware
UI Customization
Testing Your API
The built-in UI allows you to:
- 📤 Send requests directly from the browser
- 📊 View SQL queries and memory usage
- 📋 See logs and debug information
- 💾 Export to OpenAPI format
Export Options
OpenAPI 3.0
Access the OpenAPI specification:
Download the JSON representation via:
Security
If you want to restrict access to the documentation:
Credits
This package is based on the excellent work from
Laravel Request Docs by Rakuten Tech.
All credit for the original idea and implementation goes to
Pulkit Kathuria and the Rakuten Tech engineering team.
This fork extends the original project with additional features, UI redesign, and ongoing maintenance, while preserving the MIT license.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.
Support
- Issues: GitHub Issues
- Original Project: Laravel Request Docs
Colaboradores
All versions of laravel-api-auto-docs with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
kitloong/laravel-app-logger Version ^1.0
spatie/laravel-package-tools Version ^1.4.3
ext-json Version *
phpdocumentor/reflection-docblock Version ^5.4.1