setono/symfony-main-request-trait
Tiny PHP trait for Symfony apps that provides easy access to the main HTTP request from the RequestStack, helping services and listeners consistently retrieve the current master request without repeating boilerplate.
HttpFoundation/HttpKernel components).illuminate/http may suffice).For Executives: "This package lets us standardize how our Symfony-based services process requests—reducing duplicate code for auth, logging, or validation while keeping our stack lean. It’s a low-risk way to improve maintainability, especially if we’re scaling APIs or microservices. The MIT license and trait-based design mean we can extend it without vendor lock-in."
For Engineering:
*"The MainRequestTrait gives us a clean way to inject request lifecycle logic (e.g., pre-processing, decorators) without middleware clutter. It’s lightweight, works with Symfony’s RequestStack, and could cut boilerplate for:
Tradeoff: It’s Symfony-first, so we’d need to confirm Laravel compatibility or use it in Symfony-adjacent layers. Low stars/maintenance suggest vetting for production use, but the MIT license lets us fork if needed."*
How can I help you explore Laravel packages today?