Skip to main content

Laravel Spectrum

Zero-annotation API documentation generator for Laravel & Lumen

# Install
composer require wadakatu/laravel-spectrum --dev

# Generate docs
php artisan spectrum:generate

# View live
php artisan spectrum:watch
✨ Zero Annotations🔍 Smart Detection⚡ Real-time Updates🎭 Mock Server

Why Choose Laravel Spectrum?

The most intelligent API documentation generator for Laravel & Lumen

🚀

Zero Annotations

No need to write PHPDoc annotations or maintain YAML files. Laravel Spectrum analyzes your code and automatically generates comprehensive API documentation.

🧠

Smart Detection

Automatically detects FormRequests, validation rules, API Resources, authentication methods, and response structures from your Laravel code.

Real-time Updates

Watch mode instantly reflects code changes in your documentation. Perfect for development with live reload and WebSocket updates.

🎭

Mock Server

Built-in mock API server based on your OpenAPI documentation. Frontend developers can start working immediately without backend.

📤

Export Anywhere

Export to Postman, Insomnia, or any OpenAPI-compatible tool. Seamless integration with your existing API development workflow.

🎯

Production Ready

Optimized for large-scale projects with intelligent caching, incremental generation, and excellent performance.