phpsa/laravel-api-controller
phpsa/laravel-api-controller provides a reusable base controller for building RESTful APIs in Laravel. It simplifies common CRUD endpoints and standardizes JSON responses, reducing boilerplate so you can ship clean, consistent API controllers faster with less repetitive code.
Architecture fit
phpsa/laravel-api-controller is an opinionated base-controller layer that sits on top of Laravel's native controller/router/API-Resource/FormRequest/Policy stack. It fits conventional "resource CRUD" Laravel services with minimal architectural distortion.Integration feasibility
composer require → publish config → extend the package's base controller → set per-controller/per-resource guard configuration. This is a configuration-and-convention integration, not an architectural one.authorize() calls, and resource-level authorization consistently, or only to some paths.Technical risk
Key questions
Auth::guard(null), or exception? Is the fallback fail-closed?authorizeResource, form-request authorize(), and API Resource conditional fields (when(), can), or only some of these?Stack fit
illuminate/* constraints against your pinned Laravel version and PHP runtime before committing.Migration path
7.4.0 explicitly in composer.json; avoid a floating constraint while guard semantics are unverified.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?