forti/bbcode

BBcode bundle

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:symfony-bundle

v1.0.5 2016-03-26 21:20 UTC

This package is not auto-updated.

Last update: 2024-09-20 19:35:10 UTC


README

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 }}