Developed with love by KnpLabs Hire us for your project!
396

FOSCommentBundle

by FriendsOfSymfony

Threaded comments for Symfony2

FOSCommentBundle

This bundle does not currently have an active maintainer. https://github.com/FriendsOfSymfony/FOSCommentBundle/issues/442

The FOSCommentBundle adds support for a comment system in Symfony2. Features include:

  • Manages trees of comments
  • Can include comment threads in any page
  • Compatible with any persistence backend. Doctrine2 mongodb-odm and ORM are implemented.
  • Configurable sorting of the comment tree
  • REST api
  • Extensible through events fired during the comment lifecycle
  • Optional use of Symfony2 Acl to protect comments
  • Optional integration with FOS\UserBundle
  • Optional integration with Akismet_
  • Optional markup parser support (eg HtmlPurifier or php-sundown)

Note:

For users of Symfony2.0, you must use the 1.x branch. Master is no longer
compatible with Symfony2.0.

For users of Symfony2.3, you must use 2.0.0 or higher of this bundle.
Symfony2.1 and 2.2 are not supported anymore.

Build Status

Documentation

The bulk of the documentation is stored in the Resources/doc/index.md
file in this bundle:

Read the Documentation

Installation

All the installation instructions are located in documentation.

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE
The MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
fos_comment:
db_driver: ~ # Required
model_manager_name: ~
form:
comment:
type: fos_comment_comment
name: fos_comment_comment
thread:
type: fos_comment_thread
name: fos_comment_thread
commentable_thread:
type: fos_comment_commentable_thread
name: fos_comment_commentable_thread
delete_comment:
type: fos_comment_delete_comment
name: fos_comment_delete_comment
vote:
type: fos_comment_vote
name: fos_comment_vote
class: # Required
model: # Required
comment: ~ # Required
thread: ~ # Required
vote: ~
acl: []
acl_roles:
comment:
create: IS_AUTHENTICATED_ANONYMOUSLY
view: IS_AUTHENTICATED_ANONYMOUSLY
edit: ROLE_ADMIN
delete: ROLE_ADMIN
thread:
create: IS_AUTHENTICATED_ANONYMOUSLY
view: IS_AUTHENTICATED_ANONYMOUSLY
edit: ROLE_ADMIN
delete: ROLE_ADMIN
vote:
create: IS_AUTHENTICATED_ANONYMOUSLY
view: IS_AUTHENTICATED_ANONYMOUSLY
edit: ROLE_ADMIN
delete: ROLE_ADMIN
template:
engine: twig
service:
manager:
comment: fos_comment.manager.comment.default
thread: fos_comment.manager.thread.default
vote: fos_comment.manager.vote.default
acl:
comment: fos_comment.acl.comment.security
thread: fos_comment.acl.thread.security
vote: fos_comment.acl.vote.security
form_factory:
comment: fos_comment.form_factory.comment.default
commentable_thread: fos_comment.form_factory.commentable_thread.default
delete_comment: fos_comment.form_factory.delete_comment.default
thread: fos_comment.form_factory.thread.default
vote: fos_comment.form_factory.vote.default
spam_detection:
comment: ~
sorting:
default: date_desc
markup: ~
  • README update
    By XWB, 2 years ago
  • Merge pull request #431 from inssein/master
    By XWB, 2 years ago
  • Merge pull request #456 from FriendsOfSymfony/symfony-bump
    By XWB, 2 years ago
  • Merge pull request #457 from FriendsOfSymfony/travis-update
    By XWB, 2 years ago
  • Removed whitespace in 14-customizing_tree_sorting.md
    By XWB, 2 years ago
  • Add PHP 5.6 to Travis
    By XWB, 2 years ago
  • Bump Symfony requirements
    By XWB, 2 years ago
  • Merge pull request #451 from XWB/js
    By XWB, 2 years ago
  • Merge pull request #454 from dag-io/master
    By XWB, 2 years ago
  • Clean up previous commit
    By XWB, 2 years ago
  • Merge pull request #437 from jspizziri/master
    By XWB, 2 years ago
  • Merge pull request #448 from EmmanuelVella/patch-2
    By XWB, 2 years ago
  • Add / fix some docblocks
    By Damien Gavard, 2 years ago
  • Missing semicolon
    By XWB, 2 years ago
  • Change AccessDeniedHttpException for AccessDeniedException
    By emmanuelvella, 2 years ago
  • Merge pull request #447 from tarjei/patch-5
    By merk, 2 years ago
  • The template expects commentId to be set.
    By tarjei, 2 years ago
  • Merge pull request #443 from toinouu/patch-2
    By merk, 2 years ago
  • Throw http exception on Comment Persist if thread is not commentable
    By toinouu, 2 years ago
  • Add note to readme about maintainer
    By merk, 2 years ago
  • Create 14-customizing_tree_sorting.md
    By , 2 years ago
  • Added "Customizing Tree Sorting"
    By jspizziri, 2 years ago
  • Update VoteInterface.php
    By inssein, 2 years ago
  • Support 2.3 LTS
    By inssein, 2 years ago
  • Update isVoteValid so that it uses the new ExecutionContextInterface
    By inssein, 2 years ago
  • Update VoteInterface.php
    By inssein, 2 years ago
  • Merge pull request #432 from inssein/patch-2
    By stof, 2 years ago
  • Adding symfony/expression-language to require-dev
    By inssein, 2 years ago
  • Merge pull request #430 from todstoychev/master
    By stof, 2 years ago
  • Bulgarian translation
    By , 2 years ago