Skip to content

Text formatting library that supports BBCode, HTML and other markup via plugins. Handles emoticons, censors words, automatically embeds media and more.

License

Notifications You must be signed in to change notification settings

s9e/TextFormatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d3c93c · Jul 9, 2021
Jul 9, 2021
May 4, 2021
Jul 9, 2021
Jul 9, 2021
Sep 27, 2013
Apr 26, 2019
Dec 8, 2020
Jul 9, 2021
Jan 2, 2021
Apr 30, 2021
Jul 9, 2021
Aug 21, 2020
Apr 17, 2021

Repository files navigation

Overview

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

Packagist Version Build Status Coverage Status Scrutinizer Quality Score Documentation

Installation

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

composer require s9e/text-formatter

Examples

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.

Versioning

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

Online demo

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

Development tools

The following tools are used during development.

  • phpunit/phpunit 9.5.4 runs a full suite of tests before every commit.
  • code-lts/doctum 5.4.1 generates the API docs.
  • Travis, Scrutinizer, and Coveralls are used for automated testing and code tracking.

About

Text formatting library that supports BBCode, HTML and other markup via plugins. Handles emoticons, censors words, automatically embeds media and more.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages