benrowe / formatter
A value formatter to display data to end users
Installs: 2 022
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ~5.4|~7.0
Requires (Dev)
- nesbot/carbon: ^1.21|^2.0
- phpunit/phpunit: ~4.0|~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
Suggests
- carbon/carbon: ^1.21|^2.0
This package is auto-updated.
Last update: 2024-11-21 20:43:34 UTC
README
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.
Install
Via Composer
$ composer require benrowe/formatter
Usage
$formatter = new Benrowe\Formatter\Formatter; $formatter->addFormatter('return', function($value) { return $value; });
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email ben.rowe.83@gmail.com instead of using the issue tracker.
Credits
- [Ben Rowe](http://benrowe.info/p/ formatter)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.