Skip to content

Fortidude/bbcode

Repository files navigation

bbcode

bbcode parser Bundle for Symfony framework

@TODO:

  • documentation (!)
  • app/config.yml as configuration file - turn off tags / change size of youtube iframe etc.
  • more and improve the quality of tests (!)

works:

  • Bold [b]..[/b] *
  • Italic [i]..[/i] *
  • Underline ([u]..[/u] - span style
  • Colors [color=(black/#cccccc)]..[/color] - span style
  • URL [url=(http..) target=(_blank/etc)]...[/url] (target is optional)
  • video [youtube]youtube-link[/youtube]
  • image img[/img]

Instalation:

composer.json:

"require": {
        "forti/bbcode": "v1.0.x"
},
    "repositories": [
        {
            "type": "git",
            "url": "git@github.com:Fortidude/bbcode.git"
        }],

Composer update

$ composer update

app/AppKernel.php:

public function registerBundles()
    {
        $bundles = array(
        //...
                new Forti\bbcode\FortiBbcodeBundle(),
        //...
    }

and that's it! Now you can use bbcode twig extension in you view:

    {{ variable|bbcode }}

About

bbcode parser Bundle for Symfony framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages