silpo-tech/rest-bundle
REST Bundle from Silpo Tech provides a foundation for building RESTful APIs in PHP applications, with conventions and utilities to streamline request handling, serialization, and responses. It aims to reduce boilerplate for common API tasks.
Architecture fit
Bundle class, a DependencyInjection\Extension with a config tree, compiler passes, and tagged services — none of which Laravel's service container consumes. composer require will register nothing.HttpFoundation, Routing, Console, Finder, VarDumper, and symfony/error-handler), so some code may be reusable if it is written against those primitives. The bundle's wiring layer, however, must be rewritten as a ServiceProvider + config/rest.php + middleware.Integration feasibility
kernel.view / kernel.exception listeners, request-to-DTO mapping, or FOSRest-style routing conventions, the port becomes a rewrite of the request lifecycle against Laravel middleware and FormRequest.Technical risk
Key questions
FormRequest, API Resources, and Handler/Responsable contracts do not already do better?Stack fit
Migration path (port, if pursued)
Bundle + Extension → ServiceProvider + mergeConfigFrom/publishes.config/rest.php with validation in the provider's register/boot.kernel.view, kernel.exception) → Laravel middleware and renderable exceptions / Responsable responses.Compatibility
composer why-not against Illuminate's Symfony constraints before committing.HttpFoundation and Laravel's request objects overlap but are not interchangeable at the boundary; anything typed against Symfony\Component\HttpFoundation\Request inside controllers will silently diverge from Illuminate\Http\Request.Sequencing
ApiResponse/ErrorEnvelope contract in the application layer first, so domain code never imports the fork.Maintenance
Support
Scaling
Failure modes
Ramp-up
Recommendation
How can I help you explore Laravel packages today?