Download the PHP package weiloon1234/bbcodeparser without Composer
On this page you can find all versions of the php package weiloon1234/bbcodeparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weiloon1234/bbcodeparser
More information about weiloon1234/bbcodeparser
Files in weiloon1234/bbcodeparser
Package bbcodeparser
Short Description Parse your BBCode easy with this library.
License MIT
Homepage http://github.com/weiloon1234/bbcodeparser
Informations about the package bbcodeparser
The Weiloon1234\BBCodeParser
package will help you with parsing BBCode.
Install
Via Composer
Usage
To parse some text it's as easy as this!
Would like the parser to not use all bbcodes? Just do like this.
By default the parser is case sensitive. But if you would like the parser to accept tags like [B]Bold Text[/B]
it's really easy.
You could also make it more explicit that the parser is case sensitive by using another helper function.
If you would like to completely remove all BBCode it's just one function call away.
Laravel integration
The integration into Laravel is really easy, and the method is the same for both Laravel 4 and Laravel 5.
Just open your app.php
config file.
In there you just add this to your providers array
And this to your facades array
The syntax is the same as if you would use it in vanilla PHP but with the BBCode::
before the methods.
Here are some examples.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Joseph Landberg
- All Contributors
License
The MIT License (MIT). Please see License File for more information.