Download the PHP package valantir/forumbundle without Composer
On this page you can find all versions of the php package valantir/forumbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download valantir/forumbundle
More information about valantir/forumbundle
Files in valantir/forumbundle
Package forumbundle
Short Description Forum
License MIT
Homepage https://github.com/Valantir007/ForumBundle
Informations about the package forumbundle
ValantirForumBundle
Installation
Step 1
To install bundle in your project, add below line to your composer.json file:
NOTE: Please replace dev-master with the latest stable version, for example 1.0.0.
Then install bundle by running update command:
Now you need to add bundle to your AppKernel.php file:
Step 2 - configuration
Now in file routing.yml add belowe code:
Add path to your User class in your config.yml file and comment assetic.bundles options or add ValantirForumBundle to this configuration:
OR
ValantirForumBundle needs doctrine-extension-bundle, so please configure it. For example:
ValantirForumBundle needs tree, softdeleteable, sortable and sluggable
More about doctrine-extension-bundle
Your user class needs implement Valantir\ForumBundle\Entity\UserInterface or extend Valantir\ForumBundle\Entity\User
For example:
If you use FOSUserBundle and your class extends user class from this bundle, you can copy all properties and methods from Valantir\ForumBundle\Entity\User class.
If you want the user to be able to edit forum, give him the role ROLE_FORUM_ADMIN.
Step 3 - Additional configuration
By default forum uses golonka/bbcodeparser (bb_code_golonka_parser service) but if you want to use php_bbcode extension, you have to install it from here
and add parser service:
If you want to write your own parser, you can do this by:
- creating your bbcode parser like a service
- extending class of AbstractParser (Valantir\ForumBundle\Service\AbstractParser)
- changing configuration:
All versions of forumbundle with dependencies
jms/di-extra-bundle Version dev-master
knplabs/knp-paginator-bundle Version ~2.4
doctrine/dbal Version <2.5
symfony/symfony Version ~2.8
golonka/bbcodeparser Version ~2.2