PHPackages                             nlybe/ratings - 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. nlybe/ratings

ActiveElgg-plugin

nlybe/ratings
=============

Advanced rating and comment functions for Elgg

5.5(2y ago)2171GPL-2.0PHPPHP &gt;=8.0

Since Dec 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/nlybe/Elgg-Ratings)[ Packagist](https://packagist.org/packages/nlybe/ratings)[ Docs](https://github.com/nlybe/Elgg-Ratings)[ RSS](/packages/nlybe-ratings/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (1)

Ratings &amp; Comments
======================

[](#ratings--comments)

[![Elgg 5.0](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Advanced rating and comment functions for Elgg.

This plugin can replaces the default comment form and with a new one, including star ratings for Elgg objects.

The default comment form of Elgg is not replaced automatically but some custom code can be used in order to show the ratings plugin forms.

How to use it
-------------

[](#how-to-use-it)

### Returns rendered comments and a comment form for an entity

[](#returns-rendered-comments-and-a-comment-form-for-an-entity)

```
$vars['rate_label'] = elgg_echo('custom:rate:title');
$vars['comment_label'] = elgg_echo('custom:comment:label');
echo ratings_elgg_view_comments($entity, $add_comment, $vars);

/* @param \ElggEntity $entity      The entity to view comments of
 * @param bool        $add_comment Include a form to add comments?
 * @param array       $vars        Variables to pass to comment view
 */
```

### Display star ratings

[](#display-star-ratings)

```
elgg_view('ratings/ratings', ['entity' => $entity]);
```

Improvements
------------

[](#improvements)

- Add option to replace the default comment form with ratings form in selected entities
- Move max value from RatingsOptions to plugin settings in admin area
- Replace the ratings js component

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~471 days

Total

5

Last Release

829d ago

Major Versions

2.3.1 → 3.22019-07-08

3.3 → 4.42023-11-15

4.4 → 5.52024-02-05

PHP version history (3 changes)2.3.1PHP &gt;=5.6

3.2PHP &gt;=7.0

4.4PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b3b4c3ed45bff26900a422f0271d660579bb6a309428222fabeedc2329b7979?d=identicon)[nlybe](/maintainers/nlybe)

---

Top Contributors

[![nlybe](https://avatars.githubusercontent.com/u/4714025?v=4)](https://github.com/nlybe "nlybe (5 commits)")

---

Tags

pluginelggcommentsratings

### Embed Badge

![Health badge](/badges/nlybe-ratings/health.svg)

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

PHPackages © 2026

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