Tired of writing Swagger documentation manually for your Laravel APIs? Meet Laravel SwaggenerAI, a VS Code extension that uses artificial intelligence to automatically generate complete OpenAPI/Swagger documentation.
Key Features
Multiple AI Providers
The extension supports the best AI models on the market:
-
Google Gemini (
gemini-2.0-flash
) - OpenAI GPT-4
- Anthropic Claude
Smart Generation
- Automatic controller detection
- Routes and request analysis
- Intelligent caching for faster performance
Complete Customization
- Flexible AI provider selection
- Simple API key configuration
- Multiple formatting options
How It Works
The extension uses an abstraction system that allows working with different AI providers uniformly. Each provider implements the same interface, ensuring consistency in documentation generation.
The process is simple:
- Analyzes your Laravel controllers
- Automatically detects routes and methods
- Generates optimized prompts for each AI provider
- Produces ready-to-use Swagger/OpenAPI annotations
Installation and Usage
Install from VS Code Marketplace
- Search: "Laravel SwaggenerAI"
- Install the extension
- Configure your preferred AI provider and API key
- Generate documentation with one click!
Optimized Performance
The extension includes an intelligent cache system that avoids regenerating documentation unnecessarily, significantly improving response times in large projects.
Why Laravel SwaggenerAI?
Save Time: What used to take hours, now takes minutes
- Consistency: Uniform documentation across your entire project
- Flexibility: Choose the AI model that best fits your needs
- Free: Available on VS Code Marketplace
Useful Links
- 📦 VS Code Marketplace Marketplace
📚 Complete Documentation
☕ Support the Project
If you find this extension useful, consider:
⭐ Starring it on GitHub
Buy me a coffee
📣 Sharing it with other developers
Top comments (0)