| Package Data | |
|---|---|
| Maintainer Username: | patrickbrouwers |
| Maintainer Contact: | patrickbrouwers@live.nl (Patrick Brouwers) |
| Package Create Date: | 2014-07-13 |
| Package Last Update: | 2014-07-13 |
| Language: | PHP |
| License: | BSD-3-Clause |
| Last Refreshed: | 2025-10-27 15:02:03 |
| Package Statistics | |
|---|---|
| Total Downloads: | 294 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 5 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
BBcodes for Laravel
[b]Bold text[/b]
#Installation
Require this package in your composer.json and update composer.
"brouwers/bbcodes": "1.*"
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
'Brouwers\Bbcodes\BbcodesServiceProvider',
You can use the facade for shorter code. Add this to your aliases:
'Bbcode' => 'Brouwers\Bbcodes\Facades\Bbcode',
The class is bound to the ioC as bbcode
$shortcode = App::make('bbcode');
Laravel-BBcodes has been built on Laravel-Shortcodes. This means the rendering and registering is the same as that package.
You can read more about the usage at: https://github.com/patrickbrouwers/Laravel-Shortcodes
- [b][/b]
- [i][/i]
- [u][/u]
- [s][/s]
- [font size="5" color="#333"][/font]
- [center][/center]
- [quote][/quote]
- [url title="test]test[/url]
- [url href="#]test[/url]
- [img alt="test]test.jpg[/img]
- [code][/code]
- [youtube width="560" heght="315" frameborder="0" allowfullscreen="true"]00000000[/youtube]