ns/flash-bundle
ns/flash-bundle offers a lightweight flash messaging layer for PHP apps, with simple APIs for queuing, persisting, and rendering notifications across requests. It keeps user feedback consistent without extra boilerplate.
Consider it when all of the following hold:
Look elsewhere — i.e., almost always — in these cases:
session()->flash() plus Blade components already solve this. This bundle is not an option.HttpFoundation/HttpKernel and renders fine via Twig. The marginal value of this package is small over the native primitive.symfony/notifier, a mature notification bundle, or a first-party front-end component library instead.To executives: This is a very small, very low-adoption open-source utility that renders "flash" success/error messages in Symfony applications. It is not a strategic component and I do not recommend adding it as a production dependency — the capability it provides is already available in the framework, and adopting a 2-star, zero-dependent package creates ownership and security-response risk for negligible benefit in return. Recommendation: do not adopt; treat it as a reference implementation at most.
To engineering: It's a Symfony bundle, not Laravel — flag that to whoever scoped the request. Conceptually it's a thin wrapper over Symfony's flash bag plus a Twig renderer. Two viable paths: (1) skip it and use addFlash() with a shared Twig partial — roughly the same effort, zero dependency; (2) if the renderer's markup/API is genuinely nicer than what we'd write, fork it into our own src/ and own it there. Do not pull it in as a Composer dependency under the current maintenance signals.
Decision framing: The problem this package addresses is real and worth a small roadmap line if flash messaging is currently inconsistent across the product. The package itself is not the answer. Budget half a day for a shared internal flash/notification convention and close the question permanently.
How can I help you explore Laravel packages today?