setono/client-bundle
Setono ClientBundle provides a ready-to-use client integration for your Symfony application, handling service configuration and dependency injection so you can connect to external APIs with minimal boilerplate and consistent, testable client services.
setono/client-bundle is a Symfony bundle, not a Laravel package. There is no Laravel service provider, facade, or config/client.php. In a pure Laravel app you will not composer require this into your HTTP stack; you will either (a) run it inside a Symfony service/kernel in a hybrid setup, or (b) read the rewritten README and port the consent-gated cookie pattern into Laravel middleware, queued cookies, and events.composer require setono/client-bundle:^1.2 is a drop-in from v1.1.0. Run the test suite, then ship.PreStoreCookieEvent, extension points, and a contributing guide. That is now the fastest path to understanding the lifecycle.bundles.php), configure cookie attributes, dispatch/consume PreStoreCookieEvent in a listener, and assert the cookie is absent before consent and present after.PreStoreCookieEvent and only allow the store to proceed once your consent record (CMP, cookie banner, server-side consent log) says yes. Treat the event as a veto point, not a post-write notification.$_COOKIE or setcookie() directly. Go through the bundle's client/storage service so cookie name, lifetime, Secure, HttpOnly, and SameSite stay consistent and are configured in one place.ClientCookieMiddleware that reads a consent flag, a PendingCookieJar-style service, and an event/listener pair mirroring PreStoreCookieEvent. Use Cookie::queue() so headers are not written too early.level: max, Rector 2, ECS, composer-dependency-analyser, and Infection with 100% MSI. Copy the PHPStan and Infection setup into your own package/app if you maintain shared cookie or consent code.setono/code-quality-pack in favour of pinned tools, and addition of Infection are dev-dependency changes. Runtime consumers on PHP 8.1 are unaffected, but forks and contributor environments will need composer update and possibly new local PHP extensions.PreStoreCookieEvent runs before persistence. Mutating a response or cookie after headers are sent will fail silently or throw depending on your stack. Resolve consent before the response is prepared.SameSite, Secure, domain, and lifetime should be config-driven. A cookie that works locally over HTTP can disappear in production behind HTTPS/SameSite=Lax assumptions.PreStoreCookieEvent, and inspect the response's Set-Cookie header rather than $_COOKIE (which only reflects the next request).How can I help you explore Laravel packages today?