ongr/cookies-bundle
ONGR Cookies Bundle is a Symfony bundle for GDPR-friendly cookie consent: define cookie categories, render a consent banner, store visitor choices, and conditionally load analytics or tracking scripts only after users opt in.
$_COOKIE reads scattered through controllers — remains a legitimate architectural decision for any product with personalization, locale/currency preference, A/B bucketing, referral attribution, cart persistence, or consent state. Adopt the pattern; the package is not the decision. The 1.0.0 tag adds nothing to this: no consent gate, no SameSite/Secure/HttpOnly policy surface, no cookie inventory.dev-master. That is a fork-management convenience, not a reason to adopt.Illuminate\Cookie\CookieJar / the Cookie facade."Consider it only if all of the following hold:
Look elsewhere if any of these are true:
SameSite, modern autowiring, and typed properties. Assume the same porting effort as before.Secure, HttpOnly, or SameSite, and no security-release process has been described.Preferred substitutes: Symfony HttpFoundation request cookies plus the Cookie value object wrapped in your own ~50–100 line service (one day of work, fully testable); or Laravel's Cookie facade behind a thin repository class.
To executives: Still a no-go, and the new 1.0.0 tag does not change it. The release notes announce a major version number and nothing else — no changelog, no feature list, no compatibility or security statement. This remains a small Symfony-only cookie wrapper with a single maintainer, solving a problem our engineers can implement in about a day with full control and no long-term ownership liability. A "1.0.0" label is a promise about API stability, not about maintenance or security patching; treating it as rehabilitation would be reading more into the tag than the author wrote. Licensing is fine (MIT), so the only real cost is risk — and a stable tag does make the fork-and-pin fallback tidier if a legacy team has already committed. Recommendation is unchanged: do not adopt as a dependency.
To engineering: The pattern is right, the artifact is still dead — it just now has a version number. Cookies-as-injectable-services gives us testability and one place to enforce consent, SameSite, and encryption; copy that design into our own small cookie repository: on Symfony, wrap HttpFoundation cookies and register one service; on Laravel, wrap the Cookie facade. Two concrete actions from this release: (1) if anyone has 0.x or dev-master vendored anywhere, pin to 1.0.0 after diffing, since the "everything works nicely" claim is not a changelog; (2) update the risk-register entry, which currently cites "no release since 2016" and is now factually stale — replace that line with "single maintainer, no changelog, no stated security process," which is the real objection. Also re-flag the brief's framing: this is a Symfony bundle, so it remains irrelevant to our Laravel work. Recommendation: reject the dependency, adopt the pattern.
How can I help you explore Laravel packages today?