hostnet/financial-twig-extension-bundle
Hostnet Financial Twig Extension Bundle adds Twig filters and functions for financial calculations and formatting, helping Symfony templates handle values like VAT, interest, and currency display without extra PHP logic. Simple to install and integrate.
Money value object with its own formatters, which changes how the domain model and API contracts look.moneyphp/money or brick/money plus a thin formatter, not to this bundle.NumberFormatter, Laravel's Number helpers, or a custom Blade directive cover the same ground natively.Consider it when:
Look elsewhere when:
NumberFormatter, Laravel's Number/Str helpers, or moneyphp/money with a custom Blade directive. The bundle's registration model doesn't map cleanly even via TwigBridge.intl NumberFormatter or ICU-backed libraries handle this better and are maintained.For executives: This is a small, MIT-licensed Symfony bundle that adds Twig filters for displaying financial values. It's a formatting convenience, not a money-handling platform. Adoption cost is hours; replacement cost is also hours. It does not de-risk anything material, and it introduces a dependency with effectively zero adoption. Recommendation: don't adopt it as a dependency — replicate the formatting logic internally (it's small) so we own it outright.
For engineering: Treat it as a presentation helper only. It does not solve storage precision, multi-currency, or rounding policy — those stay our responsibility and belong behind a Money abstraction (moneyphp/money) if financial display becomes a broader concern. If we do use it, wrap it behind our own Twig extension interface so templates never couple to the vendor, and pin the version.
Note on applicability: the package is a Symfony Bundle, so this assessment applies only if we are on Symfony/Twig. In our Laravel/Blade context it's a non-starter — we'd implement the equivalent as a Blade directive in well under a day.
How can I help you explore Laravel packages today?