fariddomat/auto-api
Laravel package that generates complete REST API modules via an interactive Artisan command: models, migrations, controllers, routes, and OpenAPI docs. Supports file uploads, pagination, soft deletes, searchable fields, and select-field relationships.
Adopt when:
Look elsewhere when:
For Executives: *"This package lets us ship API endpoints in minutes instead of days—think of it like ‘Laravel’s Turbo Mode for APIs.’ For example, if we need to expose our ‘Orders’ or ‘Users’ data to a new mobile app or partner portal, a single command generates the full CRUD API, including security middleware, documentation (OpenAPI), and even file uploads. This directly reduces our time-to-market for features like:
For Engineering Teams: *"Auto-API solves the ‘I need a quick API for X’ problem without requiring a full backend sprint. Here’s how it fits into our workflow:
php artisan make:auto-api, answer a few CLI questions, and boom—you’ve got a fully functional API with:
/api/v1/products).store() in the controller).auth:api middleware).php artisan make:test ProductApiTest).
Caveats:select fields).For Developers:
*"This is like Laravel’s make:model but for full API modules—except it’s smarter. Here’s why it’s worth trying:
Model name? (e.g., Post): UserProfile
Fields? (e.g., bio:text, avatar:image): bio:text, company_id:select
Enable search? [N/y]: y
belongsTo, hasMany).HasSoftDeletes to your model).throttle:api).app/Http/Controllers/Api/V1/ProductController.php) to add custom logic.
When to Avoid:How can I help you explore Laravel packages today?