PHPackages                             elefant/app-comments - 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. elefant/app-comments

ActiveElefant-app[Utility &amp; Helpers](/categories/utility)

elefant/app-comments
====================

A reusable, embeddable comments component for the Elefant CMS

1.0.0(13y ago)18632MITPHP

Since May 6Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jbroadway/comments)[ Packagist](https://packagist.org/packages/elefant/app-comments)[ RSS](/packages/elefant-app-comments/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (2)Used By (2)

Comments
========

[](#comments)

A reusable, embeddable comments component for the [Elefant CMS](http://www.elefantcms.com/).

To install, copy it into your apps folder and visit Tools &gt; Comments in the Elefant admin toolbar.

To embed comments into a view template, simply include the following:

```
{! comments/embed !}
```

To specify a different page identifier, which should be in the form of a link, add the `identifier` parameter:

```
{! comments/embed?identifier=/unique-page-identifier !}
```

If no identifier is provided, it will use the current page URL as the identifier for all comments made on that page.

To configure moderation options, visit Tools &gt; Comments &gt; Settings in Elefant.

Blog comments
-------------

[](#blog-comments)

You can also use this app as the comment mechanism for the blog app, simply set the `comments` setting in the blog app configuration as follows:

```
comments = comments/embed

```

Custom email notifications
--------------------------

[](#custom-email-notifications)

You can implement notifications or any other action when a comment is posted by creating a custom handler and adding it to the `[Hooks]` section of the global `conf/config.php` file like this:

```
comments/add[] = myapp/hook/comments

```

The above line references a handler in the file `apps/myapp/handlers/hook/comments.php`, which receives a `$data`array with the following properties:

- `id` - The comment's unique ID
- `identifier` - The comment identifier from the embed code
- `user` - The ID of the user who made the comment
- `name` - The name of the user who made the comment
- `status` - 1 means published, 0 means awaiting moderation
- `ts` - The comment date/time in YYYY-MM-DD HH:MM:SS format
- `date` - The comment date/time in YYYY-MM-DDTHH:MM:SSZ format
- `comment` - The comment itself

For more information on writing hooks, [see here](http://www.elefantcms.com/wiki/Hooks-and-Webhooks).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

4756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b91acdfd63010e0f6e919966f77adb2d8ce178bca89db78645d5d69f44f5aebe?d=identicon)[jbroadway](/maintainers/jbroadway)

---

Top Contributors

[![jbroadway](https://avatars.githubusercontent.com/u/87886?v=4)](https://github.com/jbroadway "jbroadway (30 commits)")[![electrolinux](https://avatars.githubusercontent.com/u/601587?v=4)](https://github.com/electrolinux "electrolinux (1 commits)")

---

Tags

cmsappcommentsdiscussionelefant

### Embed Badge

![Health badge](/badges/elefant-app-comments/health.svg)

```
[![Health](https://phpackages.com/badges/elefant-app-comments/health.svg)](https://phpackages.com/packages/elefant-app-comments)
```

###  Alternatives

[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)

PHPackages © 2026

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