rz/formatter-bundle
rz/formatter-bundle is a PHP package that bundles reusable formatting helpers so applications can render dates, numbers, strings, and other values consistently. It keeps presentation logic centralized, reduces duplication, and is easy to integrate into existing projects.
Architecture fit
rz/formatter-bundle is a Symfony 2 bundle that extends SonataFormatterBundle, which is itself part of the Sonata Project (SonataCoreBundle lineage). Its architecture is built around Symfony's Bundle class, DI container compiler passes, and Sonata admin/block integration — none of which map onto Laravel's service-provider + facade + manager/driver model.Integration feasibility
symfony/http-kernel, symfony/dependency-injection, and Sonata packages — several of which are abandoned upstream.Technical risk
Key questions
SonataFormatterBundle? Is there novel logic, or is it thin configuration/registration?league/commonmark, spatie/laravel-markdown, HTML sanitizer libraries) already covered 80%+ of the requirement?Stack fit
FormatterManager bound as a singleton, drivers registered via config, a Formatter facade, and a format(string $type, string $value): string contract mirroring Sonata's chain semantics.Migration path
composer.json targeting php: ^8.2, laravel/framework: ^10|^11, PSR-4 autoloading, and Laravel package discovery.Compatibility
config/formatter.php, bundle registration → service provider.Sequencing
league/commonmark and drop the fork entirely.Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?