slim/extras
Optional extras for the Slim PHP framework, bundling useful middleware and view integrations such as CSRF protection, HTTP basic auth, flash messages, sessions, Twig, Smarty, and Mustache. A convenient way to add common features to Slim applications without writing them from scratch.
slim/extras is a resource/utility collection for the Slim micro-framework — not a Laravel package. Its value to us is as a reference implementation for HTTP middleware, PSR-7 request/response handling, and small auth/caching/logger helpers, not as a runtime dependency. Use it to answer "do we hand-roll this, or adopt an established library?" for thin HTTP concerns.symfony/psr-http-message-bridge. Helps us decide how much PSR abstraction to expose in our own packages.Adopt-adjacent (reading only) when:
Look elsewhere when:
Http client, Gates/Policies, and symfony/psr-http-message-bridge + nyholm/psr7 if PSR-7 interop is genuinely required. Adding a Slim utility library to a Laravel composer.json creates two HTTP abstractions with no owner.require."nyholm/psr7, laminas/laminas-diactoros, middlewares/*, monolog/monolog) over a bundled "extras" grab-bag.To executives (one paragraph): slim/extras is a deprecated utility collection for a PHP micro-framework we do not use. I am not recommending we adopt it. I'm recommending we treat it as free prior art: a small, readable reference for HTTP middleware and request/response handling that can shorten design spikes for our API work. Cost of the recommendation is zero engineering hours of dependency maintenance and zero added supply-chain surface; the benefit is a faster, better-informed design decision on one or two upcoming API initiatives. If the team instead wants a runtime dependency, the answer is no — the package is unmaintained and framework-mismatched.
To engineering (the actual ask):
slim/extras to any composer.json. Deprecated, 478 stars, 0 dependents, no security patching. Treat as read-only reference material.nyholm/psr7, symfony/psr-http-message-bridge) for code.Bottom line for the decision log: No adoption. Reference value only. Reassess if a Slim service is discovered in the estate, in which case the outcome is a decommission plan, not an integration plan.
How can I help you explore Laravel packages today?