• Stars
    star
    230
  • Rank 173,502 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 13 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 Scrutinizer Quality Score Code Coverage 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.

More Repositories

1

flarum-ext-mediaembed

Embed third-party content in your Flarum.
PHP
35
star
2

RegexpBuilder

s9e\RegexpBuilder is a single-purpose library that generates regular expressions that match a list of strings.
PHP
33
star
3

phpbb-ext-mediaembed

PHP
22
star
4

XenForoMediaBBCodes

Media BBCodes pack for XenForo
PHP
16
star
5

phpbb-ext-highlighter

PHP
15
star
6

flarum-ext-autoimage

s9e\autoimage is a Flarum extension that automatically turns image links into images.
PHP
12
star
7

Bencode

Bencode decoder/encoder. Maybe the fastest and most resilient way to handle bencoded strings in PHP.
PHP
10
star
8

s9e.github.io

HTML
10
star
9

RegexpBuilderCommand

Console command that generates a regexp from a list of strings.
PHP
9
star
10

flarum-ext-autovideo

Automatically turn video links into videos in Flarum.
PHP
4
star
11

SweetDOM

Syntactic sugar for the DOM API with an emphasis on XSLT 1.0 template manipulation.
PHP
4
star
12

xenforo-ext-media-sites

Add-on for XenForo 2
PHP
4
star
13

flarum-ext-fancypants

PHP
3
star
14

MyProject

Example project using the s9e\TextFormatter library.
PHP
2
star
15

SourceOptimizer

PHP
1
star
16

SimpleDOM

PHP
1
star
17

WebService-Minifier

PHP
1
star
18

phpbb-ext-imgsize

Adds optional dimensions to IMG BBCode
PHP
1
star
19

phpbb-ext-reparser

s9e/reparser is a phpBB 3.2 extension that was once lost and restored from backups. It adds a single icon on the viewtopic page that allows administrators to instantly reparse individual posts. ⚠ Use at your own risk. ⚠
PHP
1
star
20

phpbb-ext-reckless

s9e/reckless is a phpBB 3.2 extension that aims to improve the performance of an average-to-big forum through the use of additional indexes, MySQL hints, query rewrites and dark magic.
PHP
1
star
21

phpbb-ext-link-shortenerer

Shortens links to this forum, or maybe not this forum but close enough.
PHP
1
star