Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 859 Bytes

File metadata and controls

25 lines (16 loc) · 859 Bytes

Adding New Formatters

StringFormatter is designed to be extensible. All formatters must implement the Respect\StringFormatter\Formatter interface.

Steps to add a new formatter:

  1. Create the formatter class

Copy and rename the TemplateFormatter.php as a starting point.

  1. Create tests

Copy and rename the TemplateFormatterTest.php as a starting point.

  1. Add documentation

  2. Update README.md

    • Add your formatter to the "Formatters" table