Value formatter for view display
PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.editorconfig
.gitattributes
.gitignore
.scrutinizer.yml
.styleci.yml
.travis.yml
CHANGELOG.md
CONDUCT.md
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
phpunit.xml.dist

README.md

Formatter

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.