benrowe/formatter

A value formatter to display data to end users

0.1.2 2017-03-14 21:28 UTC

README

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.