PHPackages                             movingimage/mi-comments-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. movingimage/mi-comments-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

movingimage/mi-comments-bundle
==============================

Symfony bundle that provides commenting functionality (posting, reading and administering comments)

3.1.0(7y ago)0126BSD-3-ClausePHPPHP ^7.1

Since Feb 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MovingImage24/MICommentsBundle)[ Packagist](https://packagist.org/packages/movingimage/mi-comments-bundle)[ RSS](/packages/movingimage-mi-comments-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (10)Versions (9)Used By (0)

Comments Bundle
===============

[](#comments-bundle)

[![Build Status](https://camo.githubusercontent.com/3fdea1cac93e0c4bceac4af2abe871d72aa9b5ab2797d67bed0f541f2e77a7e6/68747470733a2f2f7472617669732d63692e6f72672f4d6f76696e67496d61676532342f4d49436f6d6d656e747342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MovingImage24/MICommentsBundle)

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
------------

[](#installation)

### Add composer dependency:

[](#add-composer-dependency)

```
composer require movingimage/mi-comments-bundle

```

### Include MICommentsBundle and dependent Bundles in your AppKernel.php:

[](#include-micommentsbundle-and-dependent-bundles-in-your-appkernelphp)

```
$bundles = [
    //...
    new FOS\RestBundle\FOSRestBundle(),
    new JMS\SerializerBundle\JMSSerializerBundle(),
    new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
    new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(), //optional
    new MovingImage\Bundle\MICommentsBundle\MICommentsBundle(),
];

```

### Include bundle routes to routing.yml:

[](#include-bundle-routes-to-routingyml)

```
mi_comments:
    resource: "@MICommentsBundle/Resources/config/routing.yml"
    prefix:   /

```

You may choose a different prefix if required.

### Configure the bundle in config.yml

[](#configure-the-bundle-in-configyml)

```
mi_comments:
   auto_publish: true //optional, by default is false
   css: /path/to/css/file //optional
   display_max_length: 100 //optional

```

### Configure doctrine migrations bundle in config.yml (optional)

[](#configure-doctrine-migrations-bundle-in-configyml-optional)

```
doctrine_migrations:
    dir_name: "%kernel.root_dir%/../vendor/movingimage/mi-comments-bundle/Migrations"
    namespace: MovingImage\Bundle\MICommentsBundle\Migrations
    table_name: mi_comments_bundle_migration_versions
    name: MICommentsBundle Migrations
    organize_migrations: false
    custom_template: ~

```

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)

[](#configure-sonata-admin-bundle-optional)

- Add SonataBundle and dependent bundles to AppKernel.php:

```
$bundles = [
    //...
    new Symfony\Bundle\SecurityBundle\SecurityBundle(),
    new Sonata\CoreBundle\SonataCoreBundle(),
    new Sonata\BlockBundle\SonataBlockBundle(),
    new Knp\Bundle\MenuBundle\KnpMenuBundle(),
    new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
    new Sonata\AdminBundle\SonataAdminBundle(),
];

```

- Enable translator in config.yml

```
translator: { fallbacks: ['%locale%'] }

```

- Configure sonata bundle in config.yml

```
sonata_block:
    blocks:
        sonata.admin.block.admin_list:
            contexts: [admin]
        sonata.admin.block.search_result:
            contexts: [admin]

sonata_admin: ~

```

- Configure routes in routing.yml

```
mi_comments_admin:
    resource: "@MICommentsBundle/Resources/config/admin_routing.yml"
    prefix:   /admin

```

You may choose a different prefix if required.

- Install assets

```
./bin/console assets:install

```

Configuration parameters
------------------------

[](#configuration-parameters)

ParameterTypeDefaultRequiredDescriptionauto\_publishbooleanfalsenoIf true, comments are automatically published.cssstringnullnoPath to CSS file. If provided, will be included in the sonata layout.display\_max\_lengthint20noMaximum length of the comment displayed in the sonata list.Usage
-----

[](#usage)

### POST a comment

[](#post-a-comment)

```
curl -X POST \
  http:///comments \
  -H 'Content-Type: application/json' \
  -d '{
	"user": {
	    "email": "pavle.predic@movingimage.com",
	    "name": "Pavle Predic"
	},
	"entity": {
	    "id": "DF3osABraqfGPaSGtty8vt",
	    "title": "Recruiting Teaser Karo & Matthias"
	},
	"comment": "What an awesome video! Great job!"
}'

```

### GET published comments

[](#get-published-comments)

```
curl -X GET /comments?entityId=DF3osABraqfGPaSGtty8vt&limit=10&offset=20

```

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
-------

[](#license)

This bundle is under the BSD 3-clause license. Please check the LICENSE file for the complete license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 76% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~38 days

Total

8

Last Release

2835d ago

Major Versions

1.1.0 → 2.0.02018-03-08

2.2.0 → 3.0.02018-06-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c191db55131753540dbf951972519e07fc90bef3a18d3a37a5b740e7aa64234?d=identicon)[mi24administrator](/maintainers/mi24administrator)

---

Top Contributors

[![pavlepredic](https://avatars.githubusercontent.com/u/1838471?v=4)](https://github.com/pavlepredic "pavlepredic (19 commits)")[![kudrmudr](https://avatars.githubusercontent.com/u/6426767?v=4)](https://github.com/kudrmudr "kudrmudr (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/movingimage-mi-comments-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/movingimage-mi-comments-bundle/health.svg)](https://phpackages.com/packages/movingimage-mi-comments-bundle)
```

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
