mrgoodbytes8667/pluralize-bundle
A lightweight Symfony bundle that adds straightforward pluralization helpers to PHP applications. Easily convert singular English words into correct plural forms for labels, messages, and dynamic content, with a simple service-ready API that keeps text generation clean and consistent.
Illuminate\Support\Pluralizer (Laravel's Str::plural) as a Twig filter. The buy side is essentially zero-effort; the build side is roughly a 20-line AbstractExtension plus a Composer autoload. This is the clearest decision the package informs: whether a trivial adapter is worth a third-party dependency at all.{% if count == 1 %} branches.NOASSERTION licensing, negligible adoption, and a very small maintainer surface, this package remains a useful test case for whether the org's dependency intake policy is actually being applied — and the v2.2.0 Symfony 7 bump is a live example of why "maintained last year" is a weak proxy for "maintained."Adopt only under narrow conditions:
illuminate/support for other reasons, and you need a pluralize filter today with no appetite to write one.Look elsewhere — or build inline — when any of the following hold:
Str::plural() / Str::pluralStudly() directly, or the @choice Blade directive.NOASSERTION means the package does not declare a recognized license. For anything shipped to customers or distributed, that is a blocker until resolved with the author. Nothing in the v2.2.0 release notes indicates this has changed — verify it explicitly rather than assuming the bump addressed it.String component and Twig's built-in |length-style helpers plus a small custom filter cover most of this without the cross-ecosystem dependency.For executives: This is a very small utility — a template helper that turns "item" into "items" when a count is greater than one. The capability is real but commodity; the same result is available from libraries we already use, and the code involved is on the order of twenty lines. A new release landed adding Symfony 7 compatibility, which is a positive signal that the project is not abandoned, but it changes the risk picture only marginally: still no declared license, still negligible adoption, still a single maintainer, still a one-line changelog rather than a support commitment. Recommendation is not to take it on as a dependency. If a team wants the filter, we replicate it in-house in an afternoon and own it outright — same behavior, no legal ambiguity, no orphaned dependency in our inventory, and we control the upgrade to the next Symfony major ourselves.
For engineering: mrgoodbytes8667/pluralize-bundle is a Symfony/Twig bundle that wraps Illuminate\Support\Pluralizer behind a Twig filter. It is a convenience shim across two ecosystems, not a library with independent logic. Three practical notes: (1) v2.2.0 is a Symfony 7 compatibility bump — useful if you are already on Symfony 7 and were blocked, but it is the only signal of maintenance we have, so treat the dependency as pinned and expect to patch it yourself; (2) the pluralization rules remain English-only, so it does not advance our localization goals; (3) the license is still NOASSERTION, so it needs legal clearance before it appears in a shipped artifact — the release notes do not address it. If we want the filter, implement a small AbstractExtension against illuminate/support directly — or, better, resolve plural forms through Symfony Translation's ICU message formatting so counts and locales are handled by one mechanism instead of two. Do not add this to composer.json for a capability we can express in a single class.
How can I help you explore Laravel packages today?