PHPackages                             webfactory/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webfactory/shortcode-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webfactory/shortcode-bundle
===========================

Symfony-Integration for thunderer/Shortcode

2.7.1(1mo ago)526.9k↓20.6%4[3 issues](https://github.com/webfactory/WebfactoryShortcodeBundle/issues)MITPHPPHP &gt;=8.1CI passing

Since Jul 29Pushed 1mo ago5 watchersCompare

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

READMEChangelog (10)Dependencies (34)Versions (29)Used By (0)

WebfactoryShortcodeBundle
=========================

[](#webfactoryshortcodebundle)

A Symfony bundle to resolve `[shortcode]` markup in Twig templates, using the [thunderer/Shortcode](https://github.com/thunderer/Shortcode) library.

It allows you to define shortcodes and their replacements in a jiffy. Shortcodes are special text fragments that can be replaced with other content or markup. E.g. a user could use the following in a comment:

```
[image url="https://upload.wikimedia.org/wikipedia/en/f/f7/RickRoll.png"]
[text color="red"]This is red text.[/text]

```

In analogy to living style guides, this bundle provides a shortcode guide that lists all registered shortcodes with an optional description and example.

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

[](#installation)

As usual, install via [Composer](https://getcomposer.org/) and register the bundle in your application:

```
composer require webfactory/shortcode-bundle

```

```
