PHPackages                             drinky78/shortcode-bundle - 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. drinky78/shortcode-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

drinky78/shortcode-bundle
=========================

Bundle that provides a Twig filter to support WordPress-like shortcodes.

011PHP

Since Oct 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/drinky78/MWShortcodeBundle)[ Packagist](https://packagist.org/packages/drinky78/shortcode-bundle)[ RSS](/packages/drinky78-shortcode-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bundle that provides a Twig filter to support WordPress-like shortcodes.

Important: It's an early prototype!

Currently supported are tags of this form:

- `[demo]` (simple tags)
- `[demo var=xxx var2=yyy]` (tags with unquoted attributes)

Not yet supported are:

- `[demo]...[/demo]` (tags with embedded content)
- `[demo var="xxx"]` (tags with quoted attributes)

\###Installation

Add ShortcodeBundle in your composer.json:

```
{
    "require": {
        "drinky78/shortcode-bundle": "dev-master"
    }
}

```

Register the bundle in AppKernel

```
