Download the PHP package evrenonur/api-lens without Composer
On this page you can find all versions of the php package evrenonur/api-lens. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evrenonur/api-lens
More information about evrenonur/api-lens
Files in evrenonur/api-lens
Package api-lens
Short Description Auto-generated, interactive API documentation for Laravel with a modern Vue 3 UI. Zero config, real-time testing, code snippets, OpenAPI export.
License MIT
Informations about the package api-lens
API Lens
Auto-generated, interactive API documentation for Laravel.
Zero config. Real-time testing. Modern Vue 3 UI. OpenAPI export.
Features
- Zero Configuration — Drop in, visit
/api-lens, done - Auto Route Scanning — Discovers all API routes, controllers, validation rules
- Smart Rule Extraction — Parses
FormRequest, inline$request->validate(), and controller rules - Response Schema Detection — Analyzes
JsonResource/ResourceCollectionclasses automatically - Path Parameter Analysis — Detects route model binding types and constraints
- PHPDoc Integration — Reads
@api-lens-group,@api-lens-auth,@deprecatedannotations - Live API Testing — Send requests directly from the browser, see response + SQL queries + memory
- Code Snippets — Auto-generated cURL, JavaScript (fetch/axios), Python, PHP (Guzzle/HTTP) snippets
- Human-Readable Rules — Transforms
required|string|max:255into plain English - Example Generation — Smart request body examples based on field names and rules
- Rate Limit Info — Extracts throttle middleware configuration
- OpenAPI 3.1.0 Export — Full spec export for Swagger UI, Postman, etc.
- Postman Collection Export — Direct Postman v2.1 collection generation
- API Version Diff — Compare endpoints between versions, generate changelogs
- Dark Mode — Beautiful dark/light theme with system preference detection
- Keyboard Shortcuts —
Ctrl+Ksearch, arrow navigation, Enter to select - Debug Metrics — SQL query count/time, memory usage, execution time per request
Screenshots
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
Publish the config (optional):
Visit your app at:
That's it!
Configuration
PHPDoc Annotations
Add annotations to your controller methods for richer documentation:
Available Annotations
| Annotation | Level | Description |
|---|---|---|
@api-lens-group Name |
Class | Group endpoints under a section |
@api-lens-auth bearer\|basic\|api-key |
Class/Method | Authentication type |
@api-lens-tag name |
Method | Custom tag |
@api-lens-response {code} {json?} |
Method | Response code with optional JSON example |
@api-lens-deprecated {date} {message} |
Method | Mark as deprecated with migration info |
OpenAPI Export
Via Artisan
Via API
Live Testing
The built-in API tester lets you:
- Set custom headers (Authorization, Content-Type, etc.)
- Edit JSON request body with smart defaults
- See response status, headers, and formatted body
- View debug metrics: SQL queries, memory usage, execution time
Enable the debug middleware in your config to capture metrics:
Building the Frontend
The Vue 3 frontend is pre-built. To develop or customize:
Built assets are served from the package automatically.
Security
API Lens is intended for development environments only. To protect in production:
License
MIT License. See LICENSE for details.
All versions of api-lens with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0