darkmatus / zf2-bbcodeintegration
Integration of Decoda BBCode-parser as ViewHelper into ZF2.
Installs: 620
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/darkmatus/zf2-bbcodeintegration
Requires
- php: >=5.3.3
- mjohnson/decoda: 6.*
- zendframework/zendframework: 2.*
This package is auto-updated.
Last update: 2025-10-08 17:20:25 UTC
README
Integration of Decoda bbcode parser as ViewHelper in ZF2
Installation:
Copy/move the 'emoticons' folder from 'vendor/mjohnson/decoda' to 'public/images/'. Add 'ZF2Bbcode' to your 'application.config.php'.
Using:
In your view use it like every other viewHelper:
echo $this->bbcode('[b]I'm a BBCode[/b]'); or echo $this->escapeHtml($this->bbcode('[b]I'm a BBCode[/b]');