optimus/architect
Optimus Architect is a Laravel package for structuring clean, modular applications. It offers generators and conventions for organizing domain logic, actions, and services, helping teams keep codebases consistent, testable, and maintainable as projects grow.
?include=author,comments). That directly supports the roadmap question: do we expose a flexible include/sparse-field API surface on v1, or keep fixed endpoints? This is a one-way door for public APIs — the package makes the flexible option cheap to prototype before you commit.spatie/laravel-query-builder (filtering/sorting/includes, far larger adoption), Fractal (mature, more ceremony), and laravel-json-api (full spec compliance). Use this package as a cheap spike to validate the requirement before choosing the durable dependency.Adopt (or, more likely, pilot) when:
Look elsewhere when:
laravel-json-api or a hand-rolled, explicitly versioned contract.spatie/laravel-query-builder is the safer, more-adopted building block.with()/load() and query profiling solve it; you don't need a serializer abstraction to fix N+1.For executives (one paragraph). We have a recurring cost every time we expose a new API endpoint or a new related object: engineers write bespoke response-shaping code and clients over-fetch or make extra calls. This package is a small, MIT-licensed Laravel library that lets us describe resource relationships in one place and let clients request only the relations they need. It's cheap to trial and could let us ship endpoint variations without new backend code, which shows up as reduced payload size and fewer client round trips. The caveat is adoption: it has a small community and a single maintainer, so I'd recommend a two-week spike against our real endpoints, not a commitment — and we should compare it head-to-head with Laravel's built-in resources plus spatie/laravel-query-builder before choosing.
For engineering (the asks). Treat this as a spike, not an adoption. Deliverable: one representative endpoint (nested relation, two client variants) implemented with this package, plus a written comparison against native API Resources and spatie/laravel-query-builder on lines of code, query count, and onboarding time for someone who hasn't seen it. Explicitly answer: does it handle eager loading of requested includes without N+1, and what happens on an unknown include? Then decide: adopt, fork-and-own, or fold the requirement into the package we already have.
How can I help you explore Laravel packages today?