PHPackages                             thelia/comment-module - 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. thelia/comment-module

ActiveThelia-module

thelia/comment-module
=====================

2.0.3(9mo ago)06289[3 issues](https://github.com/thelia-modules/Comment/issues)LGPL-3.0+PHP

Since Feb 14Pushed 9mo ago7 watchersCompare

[ Source](https://github.com/thelia-modules/Comment)[ Packagist](https://packagist.org/packages/thelia/comment-module)[ RSS](/packages/thelia-comment-module/feed)WikiDiscussions main Synced 1mo ago

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

Module Comment
==============

[](#module-comment)

The module **Comment** allows customer to add comments on different elements of the website : product, content, ...

A comment is composed of a :

- title
- message
- rating
- is related to a customer

The message can be moderated by a administrator before being displayed on the website (recommended).

Only registered and logged in customer can post comment on the website. You can also only authorized customers to post comment on products that they have bought. Customers will receive an email after 15 days (by default) to encourage them to post comment.

If the comment has been accepted the customer can edit or delete it.

This module is compatible with Thelia version 2.1 or greater.

Installation
------------

[](#installation)

### Manually

[](#manually)

- Copy the module into `/local/modules/` directory and be sure that the name of the module is Comment.
- Activate it in your thelia administration panel

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/comment-module ~1.3.0

```

Usage
-----

[](#usage)

In back-office, the configuration page allows you to configure the module.

In the tools menu, a new page displays comments and let you manage them.

In the front office, an integration is provided for the default template. It uses hooks, so it's activated by default.

You can override these smarty templates in the current template. You have to put your templates files in this directory (with default template) : `template/frontOffice/default/modules/Comment/`

Loop
----

[](#loop)

The module provides a new loop : **comment**

### Input arguments

[](#input-arguments)

ArgumentDescription**id**the comment id**customer**the customer id**ref**the reference key. eg : product**ref\_id**the reference id. (the product id)**status**the status of the comment : 0 = pending, 1 = accepted**verified**the customer has bought the product**locale**the locale of the comment : fr\_FR**load\_ref**load or not the reference object. default = 0**ref\_locale**locale of the reference object fields. default: the request locale### Output arguments

[](#output-arguments)

VariableDescription$IDthe comment id$USERNAMEthe username$EMAILthe email$CUSTOMER\_IDthe customer id$REFthe reference key$REF\_IDthe reference id$TITLEthe title$CONTENTthe content$RATINGthe rating$STATUSthe status : : 0 = pending, 1 = accepted$VERIFIED0 : not verified / not applicable, 1 = the customer has bought the product$ABUSEan abuse counter.how to get the rating of a product
----------------------------------

[](#how-to-get-the-rating-of-a-product)

Ratings are stored in the meta\_data table. to retrieve the rating, you can use the smarty function `meta` like this :

```
{$rating={meta meta="COMMENT_RATING" key="product" id="10"}}
{if $rating}

    rating: {$rating}

{/if}
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance56

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~545 days

Recently: every ~436 days

Total

8

Last Release

291d ago

Major Versions

1.3.0 → 2.0.02021-10-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![bcbrr](https://avatars.githubusercontent.com/u/4911969?v=4)](https://github.com/bcbrr "bcbrr (8 commits)")[![bibich](https://avatars.githubusercontent.com/u/1215555?v=4)](https://github.com/bibich "bibich (8 commits)")[![NicolasBarbey](https://avatars.githubusercontent.com/u/26166378?v=4)](https://github.com/NicolasBarbey "NicolasBarbey (3 commits)")[![lunika](https://avatars.githubusercontent.com/u/767834?v=4)](https://github.com/lunika "lunika (2 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (2 commits)")[![mespeche](https://avatars.githubusercontent.com/u/2156044?v=4)](https://github.com/mespeche "mespeche (2 commits)")[![zzuutt](https://avatars.githubusercontent.com/u/7439945?v=4)](https://github.com/zzuutt "zzuutt (1 commits)")[![julescournut](https://avatars.githubusercontent.com/u/26310511?v=4)](https://github.com/julescournut "julescournut (1 commits)")[![roadster31](https://avatars.githubusercontent.com/u/2197734?v=4)](https://github.com/roadster31 "roadster31 (1 commits)")[![Kira-kyuukyoku](https://avatars.githubusercontent.com/u/6144299?v=4)](https://github.com/Kira-kyuukyoku "Kira-kyuukyoku (1 commits)")

### Embed Badge

![Health badge](/badges/thelia-comment-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-comment-module/health.svg)](https://phpackages.com/packages/thelia-comment-module)
```

PHPackages © 2026

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