Download the PHP package movingimage/mi-comments-bundle without Composer
On this page you can find all versions of the php package movingimage/mi-comments-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download movingimage/mi-comments-bundle
More information about movingimage/mi-comments-bundle
Files in movingimage/mi-comments-bundle
Package mi-comments-bundle
Short Description Symfony bundle that provides commenting functionality (posting, reading and administering comments)
License BSD-3-Clause
Informations about the package mi-comments-bundle
Comments Bundle
Symfony bundle that provides commenting functionality (posting, reading and administering comments).
Features include:
- API endpoint for fetching existing comments (supports pagination)
- API endpoint for posting comments
- Admin area for administering comments (listing, publishing and rejecting)
Installation
Add composer dependency:
Include MICommentsBundle and dependent Bundles in your AppKernel.php:
Include bundle routes to routing.yml:
You may choose a different prefix if required.
Configure the bundle in config.yml
Configure doctrine migrations bundle in config.yml (optional)
If you are already using doctrine migrations bundle in your project, keep your current configuration, but copy the migration files from Migrations directory to your existing migrations directory. Alternatively create the required table manually. In this case you don't need to use the doctrine migrations bundle.
Configure Sonata Admin Bundle (optional)
-
Add SonataBundle and dependent bundles to AppKernel.php:
-
Enable translator in config.yml
-
Configure sonata bundle in config.yml
- Configure routes in routing.yml
You may choose a different prefix if required.
- Install assets
Configuration parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| auto_publish | boolean | false | no | If true, comments are automatically published. |
| css | string | null | no | Path to CSS file. If provided, will be included in the sonata layout. |
| display_max_length | int | 20 | no | Maximum length of the comment displayed in the sonata list. |
Usage
POST a comment
GET published comments
This will return a list of published comments for the specified video ID (if provided), ordered by creation date (newest first). If no limit and offset are provided, the defaults will be used (limit: 10, offset: 0).
License
This bundle is under the BSD 3-clause license. Please check the LICENSE file for the complete license.
All versions of mi-comments-bundle with dependencies
doctrine/doctrine-bundle Version ^1.8
friendsofsymfony/rest-bundle Version ^2.2
jms/serializer-bundle Version ^2.1
symfony/validator Version ^2.7|^3.0|^4.0
doctrine/orm Version ^2.6
doctrine/doctrine-migrations-bundle Version ^1.3
sonata-project/admin-bundle Version ^3.32
sonata-project/doctrine-orm-admin-bundle Version ^3.4.2