StringFormatter is designed to be extensible. All formatters must implement the Respect\StringFormatter\Formatter interface.
Steps to add a new formatter:
- Create the formatter class
Copy and rename the TemplateFormatter.php as a starting point.
- Create tests
Copy and rename the TemplateFormatterTest.php as a starting point.
-
Add documentation
- Create
docs/YourFormatter.mdfollowing the formatter documentation template
- Create
-
Update README.md
- Add your formatter to the "Formatters" table