juststeveking/http-slim
A lightweight Laravel package for slimming HTTP responses, trimming unnecessary headers and overhead so your app returns leaner, cleaner, faster responses with minimal configuration.
composer require + ls vendor/.../src + cat composer.json spike resolves it. Do not let a roadmap item, a sprint ticket, or a slide deck be written against the wrong one — and treat the fact that the public metadata is this unreliable as a data point about the project's stewardship.X-Powered-By, Server, and other disclosing headers is a cheap win and largely achievable with a few lines of nginx/Laravel middleware. The package saves maybe an hour. That is a "nice to have," not a roadmap item, and it should not be the reason anyone spends a procurement cycle.Http:: calls in controllers and jobs, each with its own error handling and response unpacking. The package's genuine product value is a convention — one class per API, owning its base URL, headers, auth, and endpoints, returning a predictable shape. That is a maintainability and code-review decision, and it is cheap to make.php-http/common plugin seam. If real, that is an option to swap the underlying client later. It is a pattern argument, not a dependency argument, and it must be verified in source before anyone writes it into an architecture doc as capability.Consider it — most likely to study and adapt rather than depend on — when:
Http:: boilerplate in every consumer.2.1.0 (not ^2.1) and accept it as effectively frozen, with a written replacement deadline and no expectation of upstream support.app/Support/ legally trivial — a genuine mitigation that lowers this from "risk" to "accepted cost."Look elsewhere, or just build it, when:
Declaration of ... must be compatible with ...) that surfaces at deploy rather than in tests.composer update.The two extension points that survive scrutiny: subclassing the base client, and the interface you define at the call-site boundary. The second is what makes "remove the package" a one-file change instead of a refactor.
One-line summary for executives: This is a small, unmaintained open-source component that demonstrates a good pattern for calling third-party APIs from Laravel — we should copy the pattern into roughly 100 lines of code we own, not add the package as a dependency.
For executives — the decision and the risk:
For engineering — what we'd actually do:
composer require ...:2.1.0, inspect src/ and composer.json for php-http/discovery and php-http/client-common), then decide. If autodiscovery is real, pin the resolved client explicitly in a service provider — silent resolution of a different PSR-18 client is a behavioural change with no code change on our side.Http::fake() plus Http::assertSent the standard regression test at the HTTP layer. That closure is what protects base-URI assembly, header merge order, and auth — the three things that break silently across Laravel upgrades.Http:: again.How can I help you explore Laravel packages today?