Formatter is a real time value decorator system. It's designed to provide a consistent interface for formatting values, regardless of the method designed.
This allows for runtime formatting to be controlled via data rather than via code.
The formatter allows you to register & override formatter providers, giving you full control over the final output.
Via Composer
$ composer require benrowe/formatter
$formatter = new Benrowe\Formatter\Formatter;
$formatter->addFormatter('return', function($value) {
return $value;
});
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
- [Ben Rowe](http://benrowe.info/p/ formatter)
- All Contributors
The MIT License (MIT). Please see License File for more information.