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

ActiveFlightphp-plugin[Utility &amp; Helpers](/categories/utility)

pubvana/comments
================

Nested, moderated comments for Pubvana with captcha support

0.2.2(2mo ago)031MITPHPPHP ^8.1

Since Apr 29Pushed 2mo agoCompare

[ Source](https://github.com/Pubvana-CMS/comments)[ Packagist](https://packagist.org/packages/pubvana/comments)[ RSS](/packages/pubvana-comments/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (6)Used By (1)

[![Stable? Not Quite Yet](https://camo.githubusercontent.com/8712c441bb32fd8db507e0008c5d13e30def50064f8fcbc689fbcf5191f7d2af/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652533462d6e6f7425323071756974652532307965742d626c75653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pubvana/comments)[![License](https://camo.githubusercontent.com/035baa99648ca7ac202eff856588f45244ceb83d9d6019140d962cd86ddc6bbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70756276616e612f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pubvana/comments)[![PHP Version](https://camo.githubusercontent.com/a472a4b91cbb421d4ec8b7d8d0df5955df53994a7d996d7cbc6b8f7928102605/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f70756276616e612f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pubvana/comments)[![Monthly Downloads](https://camo.githubusercontent.com/1935673ec47012775b89ccf56355260399a82ad31629c722334ac02ec258be9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f70756276616e612f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pubvana/comments)[![Total Downloads](https://camo.githubusercontent.com/35e4092860c497ea4582bd8bbd42862d1c5e87e7f68836f8eaa0096dbdb02475/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70756276616e612f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pubvana/comments)[![GitHub Issues](https://camo.githubusercontent.com/eff290c463e9bf42d2d85f6a5e823df5dc9d291bcebc969b394126735f3a9326/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f50756276616e612d434d532f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://github.com/Pubvana-CMS/comments/issues)[![Contributors](https://camo.githubusercontent.com/70e5ac5fcf6fb4f2ab7838c15726ea1f1bdbd8f5fb6cdaa9a1879c7eda6dbce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f50756276616e612d434d532f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://github.com/Pubvana-CMS/comments/graphs/contributors)[![Latest Release](https://camo.githubusercontent.com/ccff38fcc4b546e83c9819d4c587f545388047d98e9a90f312f375fbe4206555/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f50756276616e612d434d532f636f6d6d656e74733f7374796c653d666f722d7468652d6261646765)](https://github.com/Pubvana-CMS/comments/releases)[![Contributions Welcome](https://camo.githubusercontent.com/9db3f8b82ea88469efd296a9305fc00f40b4c9450bb6b539d42d339fa6963444/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d626c75653f7374796c653d666f722d7468652d6261646765)](https://github.com/Pubvana-CMS/comments/pulls)

pubvana/comments
================

[](#pubvanacomments)

**I noticed folks downloading some of these packages. I'm super grateful, Thank You! I would like to let folks know until this notice disappears I'm doing a lot of breaking changes without worrying about them. Once versions are up around 0.5.x things should settle down.**

Nested, moderated comments for Pubvana with hCaptcha and reCAPTCHA support.

Features
--------

[](#features)

- Polymorphic comments on posts and pages
- Nested/threaded replies (configurable max depth, default 3)
- Guest comments (admin-configurable)
- Moderation workflow: auto-approve or pending queue (admin-configurable)
- Captcha support: hCaptcha, reCAPTCHA v2, or none
- HTMLPurifier sanitization on comment body
- Comment service: `$app->comments()`

Configuration
-------------

[](#configuration)

In `app/config/config.php`:

```
'plugins' => [
    'pubvana/comments' => [
        'enabled'  => true,
        'priority' => 55,
    ],
],
```

This package uses Flight School's return-array config format. `src/Config/Config.php` returns the package defaults as an array, Flight School stores that array under `pubvana.comments` on `$app`, and the current public route prefix is defined there with `'routePrepend' => 'comments'`.

Service API
-----------

[](#service-api)

```
$comments = $app->comments();

$comments->findForContent('post', $postId);        // Threaded tree for display
$comments->create($data);                           // Create comment (validates depth, captcha, purifies)
$comments->approve($id);                            // Set status to approved
$comments->reject($id);                             // Set status to rejected
$comments->delete($id);                             // Hard delete
$comments->list($page, $perPage, $status);          // Admin listing
$comments->countByStatus($status);                  // Count by status
$comments->verifyCaptcha($token, $remoteIp);        // Manual captcha check
```

Admin
-----

[](#admin)

Moderation panel at `/admin/comments` with status filters, approve/reject/delete actions, and comment detail view.

Permissions
-----------

[](#permissions)

- `comments.moderate` - Approve, reject, and delete comments

Requirements
------------

[](#requirements)

- PHP ^8.1
- enlivenapp/flight-school ^0.2
- enlivenapp/flight-settings
- enlivenapp/flight-shield
- enlivenapp/migrations
- ezyang/htmlpurifier
- flightphp/active-record ^0.7

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance84

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

5

Last Release

80d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3036663?v=4)[Mike W](/maintainers/enlivenapp)[@enlivenapp](https://github.com/enlivenapp)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k46](/packages/civicrm-civicrm-core)[oat-sa/tao-core

TAO core extension

65143.7k124](/packages/oat-sa-tao-core)[verbb/formie

The most user-friendly forms plugin for Craft.

101393.6k74](/packages/verbb-formie)[getdkan/dkan

DKAN Open Data Catalog

387138.7k2](/packages/getdkan-dkan)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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