lomkit/laravel-rest-api
lomkit/laravel-rest-api is a Laravel package for quickly building production-ready JSON APIs. Define resources declaratively and get automatic CRUD endpoints, powerful filters, sorting, pagination, relationship includes, validation, authorization, and OpenAPI docs while staying close to Laravel conv...
lomkit/laravel-rest-api is a mature, batteries-included query layer for Eloquent resources (filtering, sorting, pagination, relationship includes, aggregates, field selection). Adopting it avoids building and maintaining a bespoke query-string parser, query-builder allow-listing, and serialization layer — a multi-sprint effort for most teams.spatie/laravel-query-builder lineage) is a reasonable default for Laravel-centric stacks.Adopt when:
Look elsewhere or build in-house when:
For executives: This is a well-established open-source Laravel component that lets our engineers expose data through our APIs faster and more consistently, instead of rebuilding the same filtering and pagination logic repeatedly. The near-term trade-off is a dependency on a community-maintained library, which we mitigate with version pinning and routine patch deployment. The latest patch (v2.23.2) is a security fix; our standard upgrade process should apply it, and its existence is a useful reminder that we need a standing dependency-vulnerability process rather than ad hoc updates.
For engineering leadership: Adopting it is a build-vs-buy call that favors buy for the commodity parts of our API surface. It cuts bespoke query-parser code and gives us a consistent, testable contract. The main risks are maintainer concentration and security-response latency — both manageable with pinning, automated dependency scanning, and a documented upgrade/rollback path. Recommend a bounded pilot on a non-critical service first, then standardize if the ergonomics and upgrade story hold up. The v2.23.2 advisory should be triaged and patched as part of normal release hygiene; confirm we are not exposed on currently deployed versions.
How can I help you explore Laravel packages today?