Created: 2011-07-11 08:25
Updated: 2019-03-01 16:02
License: mit



s9e\TextFormatter is a text formatting library that supports BBCode, Markdown, HTML and other markup via plugins. The library is in PHP, with a JavaScript port also available for client-side preview (see below.)

Build Status Coverage Status Scrutinizer Quality Score Documentation Contact the author.


The best way to install s9e\TextFormatter is via Composer. See Installation.

composer require s9e/text-formatter


Versioning is meant to follow Semantic Versioning. You can read about API changes in the documentation.


You can try the JavaScript version in this BBCodes + other stuff demo, or this Markdown + stuff (Fatdown) demo.


If you can only read one example, read how to use a bundle.

You can run the scripts directly from the examples directory and you will find in the manual a description of each plugin as well as other examples.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more