PHPackages                             freepius/php-richtext - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. freepius/php-richtext

ActiveLibrary[Templating &amp; Views](/categories/templating)

freepius/php-richtext
=====================

A simple wrapper (and more) allowing to use Markdown(Extra) and SmartyPants(Typographer)

v1.0(11y ago)053CC0PHP

Since Feb 1Pushed 11y ago2 watchersCompare

[ Source](https://github.com/freepius/php-richtext)[ Packagist](https://packagist.org/packages/freepius/php-richtext)[ Docs](http://github.com/freepius/php-richtext)[ RSS](/packages/freepius-php-richtext/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

php-richtext
============

[](#php-richtext)

This package provides :

- a simple wrapper allowing to use [Markdown(Extra)](https://michelf.ca/projets/php-markdown) and [SmartyPants(Typographer)](https://michelf.ca/projets/php-smartypants), together or alone
- a service provider for the [Pimple](http://pimple.sensiolabs.org) DI Container (and so for [Silex](http://silex.sensiolabs.org) too)
- an extension for the [Twig](http://twig.sensiolabs.org) template engine

[Markdown(Extra)](https://michelf.ca/projets/php-markdown) and [SmartyPants(Typographer)](https://michelf.ca/projets/php-smartypants) packages come from [Michel Fortin](https://michelf.ca). Thanks to him for its great work!

**php-richtext** works with *PHP 5.3* or later.

Installation
------------

[](#installation)

The recommended way to install **php-richtext** is through [Composer](http://getcomposer.org). Just create a `composer.json` file and run the `php composer.phar install` command to install it:

```
{
    "require": {
        "freepius/php-richtext": "~1.0"
    }
}
```

Usage
-----

[](#usage)

Use from an instance of the `Richtext` class:

```
