PHPackages                             tigralt/ezratingbundle - 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. tigralt/ezratingbundle

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

tigralt/ezratingbundle
======================

A simple and fast implemented bundle for user rating management

026PHP

Since Oct 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Tigralt/EZRating)[ Packagist](https://packagist.org/packages/tigralt/ezratingbundle)[ RSS](/packages/tigralt-ezratingbundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

EZRating
========

[](#ezrating)

A light bundle for implementing user rating in a Symfony application.

Install
-------

[](#install)

In the console use the command

```
composer require tigralt/ezratingbundle
```

Or in your `composer.json` add the requirement

```
"require": {
    "tigralt/ezratingbundle": "dev-master"
}
```

Then register the bundle in your `AppKernel`

```
public function registerBundles()
{
    ...
    $bundles = array(
        ...
        new Tigralt\EZRatingBundle\EZRatingBundle(),
    );
    ...
    return $bundles;
}
```

Information
-----------

[](#information)

The rating architecture is divided in two objects:

- The rating thread
- The user rating

A rating thread is a type of rating. For example: An user is rated on his activity, then a rating thread named "Activity" will be created to contain all rating about "Activity". A user rating is the rating from an user.

Data
----

[](#data)

Rating thread:

- Name
- Associated ratings

Rating:

- UserID
- Rating
- Comment
- Metadata

---

The metadata in the rating is an array that can support any type of data.

Usage
-----

[](#usage)

In order to use the rating bundle, you have to call the rating manager in your controller

```
$rating_manager = $this->get("ezrating.manager");
```

### Add rating thread

[](#add-rating-thread)

```
$rating_manager->addRatingThread("TheRatingThreadName");
```

### Add rating

[](#add-rating)

```
$rating_manager->addRating($thread_id, $user_id, $rating_number, "This is a comment", array("meta" => "data"));
```

### Find all rating on a user

[](#find-all-rating-on-a-user)

```
$ratings = $rating_manager->getAllFromUser($user_id);
```

### Get all rating thread

[](#get-all-rating-thread)

```
$rating_threads = $rating_manager->getAllRatingThreads();
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e36ef67e8782d3cd8e1a0a865a65ef1033e33e718c78b827aae96ebdb938163?d=identicon)[Tigralt](/maintainers/Tigralt)

---

Top Contributors

[![qcabanes-hobby](https://avatars.githubusercontent.com/u/2451712?v=4)](https://github.com/qcabanes-hobby "qcabanes-hobby (7 commits)")

### Embed Badge

![Health badge](/badges/tigralt-ezratingbundle/health.svg)

```
[![Health](https://phpackages.com/badges/tigralt-ezratingbundle/health.svg)](https://phpackages.com/packages/tigralt-ezratingbundle)
```

###  Alternatives

[hail812/yii2-adminlte-widgets

yii2 adminlte widgets

10257.4k4](/packages/hail812-yii2-adminlte-widgets)

PHPackages © 2026

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