juampi92/api-resources
juampi92/api-resources extends Laravel's Eloquent API resources with query-string controls for sparse fieldsets, nested includes, and filtering, letting clients request exactly the data they need while you keep resource definitions clean, consistent, and reusable.
Basis of assessment: No prior assessment existed and no structured package data was supplied. This evaluation is derived from the v1.10.0 release notes alone; treat conclusions as provisional pending the evidence checks below.
Architecture fit
juampi92/api-resources is a presentation-layer package layered on Laravel's Eloquent API Resources, adding query-driven behaviour (relationship include and sparse fields selection) without touching persistence, schema, or infrastructure.Integration feasibility
composer require; adoption is opt-in per Resource class, so blast radius is limited to endpoints we choose.Technical risk
--ignore-platform-reqs from CI (PR #18).--ignore-platform-reqs is a mild positive: CI now validates real platform requirements instead of masking them. It also means previously tolerated environment mismatches may now fail fast — verify the require block for new ext-* or PHP floor constraints before pinning.Key questions
illuminate/* constraint, or bump it in a way that silently drops older Laravel support?include/fields query API collide with existing query-parameter contracts, cache keys, or gateway/CDN caching rules?Stack fit
Migration path
Compatibility
^1.10 and reconcile against the application's laravel/framework version. Confirm no transitive constraint conflict with other illuminate-dependent packages (common offenders: auth, permission, and admin-panel packages).composer.json require block post-#18 to confirm no new platform extensions are demanded.Sequencing
composer.json, inspect CI workflow file to confirm the test matrix.Maintenance
Support
Scaling
include parameters invite N+1 queries and deep relationship traversal.include/fields set.Failure modes
Ramp-up
Recommendation (provisional): adopt for incremental, endpoint-scoped use behind allowlists; do not standardise org-wide until the CI matrix and constraint behaviour are confirmed and a maintenance contingency is agreed.
How can I help you explore Laravel packages today?