PHPackages                             geta6/twig-markdown - 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. geta6/twig-markdown

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

geta6/twig-markdown
===================

152061[2 issues](https://github.com/geta6/Twig-Markdown/issues)[1 PRs](https://github.com/geta6/Twig-Markdown/pulls)PHP

Since Feb 12Pushed 13y ago3 watchersCompare

[ Source](https://github.com/geta6/Twig-Markdown)[ Packagist](https://packagist.org/packages/geta6/twig-markdown)[ RSS](/packages/geta6-twig-markdown/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Twig-Markdown
=============

[](#twig-markdown)

convert markdowned text to html for Twig.

markdown converter is php-markdown-extra.

Install
-------

[](#install)

### Install via PEAR

[](#install-via-pear)

Install via PEAR installer locally:

```
$ pear install -f package.xml

```

Install via PEAR installer from Corneltek PEAR channel:

```
$ pear install -a corneltek/Twig_Extensions_Markdown

```

### Install via composer

[](#install-via-composer)

Install composer in your project:

```
curl -s http://getcomposer.org/installer | php
```

Create a composer.json file in your project root:

```
{
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "michelf/php-markdown",
                "version": "1.0",
                "dist": {
                    "url": "https://github.com/michelf/php-markdown/zipball/extra",
                    "type": "zip"
                },
                "autoload": {
                    "files": [
                        "markdown.php"
                    ]
                }
            }
        },
        {
            "type": "vcs",
            "url": "http://github.com/geta6/Twig-Markdown"
        }
    ],
    "require": {
        "michelf/php-markdown": "1.*",
        "geta6/twig-markdown": "@dev"
    }
}
```

Run install command:

```
php composer.phar install
```

Usage
-----

[](#usage)

`{% markdown %}markdownedtext{% endmarkdown %}`

or

`{{ markdowned|markdown|raw }}`

include
-------

[](#include)

```
# use built-in twig autoloader
require_once 'Twig/Autoloader.php';
Twig_Autoloader::register();

$debug = new \Twig_Extensions_Extension_Debug;
$twig->addExtension( $debug );

$markdown = new \Twig_Extension_Markdown;
$twig->addExtension( $markdown );
```

Development
-----------

[](#development)

To update the `package.xml` file, you need to install `onion`:

todo
----

[](#todo)

むりやりincludeしてるのでもっとスマートな方法おしえてください

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a948bdfac5d241826cb692f1be8afec1bbe201c655eeaf52b1643fa42f3e17f6?d=identicon)[geta6](/maintainers/geta6)

---

Top Contributors

[![c9s](https://avatars.githubusercontent.com/u/50894?v=4)](https://github.com/c9s "c9s (10 commits)")[![geta6](https://avatars.githubusercontent.com/u/665440?v=4)](https://github.com/geta6 "geta6 (7 commits)")

### Embed Badge

![Health badge](/badges/geta6-twig-markdown/health.svg)

```
[![Health](https://phpackages.com/badges/geta6-twig-markdown/health.svg)](https://phpackages.com/packages/geta6-twig-markdown)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
