dskripchenko/laravel-api
Laravel package for rapidly building REST APIs with automatic routing, request validation, filtering, pagination, and consistent JSON responses—plus OpenAPI docs generation to keep your endpoints documented as they grow.
Adopt-or-pilot when most of the following hold:
Look elsewhere when:
For executives: This is an MIT-licensed Laravel package that turns the PHPDoc comments our engineers already write into a published OpenAPI 3.0 spec, and scaffolds versioned CRUD endpoints with a middleware cascade. The business case is cost avoidance: it removes the duplicate work of hand-authoring and hand-maintaining API documentation, which is typically the first thing to slip when delivery pressure rises. For any roadmap item that involves external or partner integrations, "we publish a current API spec" becomes cheap to promise instead of expensive to sustain. Cost of adoption is low and reversible — it is a Composer dependency, not a platform commitment.
For engineering: One dependency gives us generated OpenAPI 3.0 from PHPDoc (no annotations, no YAML to keep in sync), opinionated API versioning, CRUD scaffolding, and composable middleware cascades. It fits the Laravel idioms we already use and removes boilerplate we currently rewrite per service. Trade-off to be explicit about: the project is early-stage with a very small community, so we should pilot on one service behind a thin internal interface, keep the spec-generation step isolated in CI so the generator is swappable, and not let its conventions leak into domain code. If the pilot holds, we standardize; if not, we have lost a sprint, not an architecture.
How can I help you explore Laravel packages today?