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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

happytodev/blogr-comments
=========================

Comment system for Blogr CMS — threaded comments, moderation, voting, anti-spam, and notifications

2.0.0(2w ago)08↓50%MITPHPPHP ^8.3CI failing

Since Jun 9Pushed 2w agoCompare

[ Source](https://github.com/happytodev/blogr-comments)[ Packagist](https://packagist.org/packages/happytodev/blogr-comments)[ RSS](/packages/happytodev-blogr-comments/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (14)Versions (9)Used By (0)

Blogr Comments
==============

[](#blogr-comments)

[![Latest Version](https://camo.githubusercontent.com/bef681259425ddf9cd0edf5440d44a31402cb7009461a324890c25959488f52e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6861707079746f6465762f626c6f67722d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happytodev/blogr-comments)[![Tests](https://camo.githubusercontent.com/f0d731e8a0244d8fce795fc30857a922dbe14920c2aca6f11ea7c3a360d0c6a8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6861707079746f6465762f626c6f67722d636f6d6d656e74732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/happytodev/blogr-comments/actions)[![PHP Version](https://camo.githubusercontent.com/1d3d005a2c7b842d3ced163dcf1e0b71f1d90bd529553fb036225ba6dd636f7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6861707079746f6465762f626c6f67722d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happytodev/blogr-comments)[![Total Downloads](https://camo.githubusercontent.com/1f71bfc8f8ffc36b4596b284d573d313c2b46bc78c618c773442453735faea65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6861707079746f6465762f626c6f67722d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/happytodev/blogr-comments)[![GitHub Stars](https://camo.githubusercontent.com/0ac30c139b449332609b14e75e32ad819d0444ea66f9866f945285cad90f7c23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6861707079746f6465762f626c6f67722d636f6d6d656e74733f7374796c653d666c61742d737175617265)](https://github.com/happytodev/blogr-comments)[![License](https://camo.githubusercontent.com/458425f8985b0b0c8a736cffe75e05a098e3d77906acddbcad2bfc54492a4e02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)

**A full-featured comment system for Blogr CMS** — threaded comments, moderation, voting, anti-spam, email notifications, and a complete Filament admin interface.

Features
--------

[](#features)

### 🔧 Core

[](#-core)

- **Threaded comments** — Nested replies with configurable depth (1–10 levels) and dedicated partials for each level
- **Markdown formatting** — Bold, italic, code blocks (with syntax highlighting via `scrivo/highlight.php`), inline code, links, H2
- **Live preview** — See formatted content before posting
- **Character counter** — Configurable max length (default 5000) with real-time countdown
- **Toolbar** — Bold, italic, H2, link, code block, preview buttons (safe Markdown subset)

### 🛡️ Moderation &amp; Anti-spam

[](#️-moderation--anti-spam)

- **3 moderation modes** — Pre-moderation (all pending), post-moderation (auto-publish), trust system (auto-trust after N approved comments)
- **Multi-layer anti-spam** — Cloudflare Turnstile (free, invisible), StopForumSpam API (free), Akismet API (paid, optional), local keyword/link filters
- **Rate limiting** — Per-IP throttling for comments (configurable per hour) and votes (per minute) via dedicated middleware
- **Admin moderation** — Approve, reject, mark as spam, or delete individually or in bulk
- **Email-based quick moderation** — Signed URL approve/reject links in notification emails

### 📬 Notifications

[](#-notifications)

- **New comment alert** — Notify site owner on every new comment (or daily digest or weekly digest)
- **Reply notification** — Possibility to auto-notify parent commenter when someone replies, with opt-out link
- **Comment subscriptions** — Auto-subscribe on comment for reply notifications
- **Daily digest** — Configurable email digest of pending comments

### 🗳️ Voting

[](#️-voting)

- **Up/down voting** — IP + User-Agent based anti-doublon protection
- **Denormalized score** — `vote_score` column on comments for fast sorting
- **Sort options** — Newest, oldest, best (by score)

### ⚙️ Filament Admin

[](#️-filament-admin)

- **Comment Resource** — Full list/view with status filters, visible/invisible toggle
- **Dashboard widget** — Pending comments count with quick link to moderation list
- **Settings page** — All configuration UI (moderation, notifications, anti-spam, rate limits, nesting depth, display options)

### 🌍 Frontend Display

[](#-frontend-display)

- **Syntax highlighting** — Server-side code highlighting with language badge, dark mode support
- **Per-comment permalink** — 🔗 button copies sharable URL with `#comment-{id}` anchor
- **Smart anchor scrolling** — Dynamic scroll offset accounts for fixed/sticky navigation and mobile viewport
- **Comment count on articles** — Shows count in card date line and article metadata (configurable)
- **Gravatar support** — Automatic avatars via email MD5 hash
- **Multilingual** — Complete EN, FR, ES, DE translations for frontend, admin, and email templates

### 🔌 Extension Points

[](#-extension-points)

- **BlogrExtension interface** — Registers as `blogr-comments` extension, respects enable/disable state
- **FilamentPlugin** — Auto-registers resource, settings page, and widget in the panel

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

[](#requirements)

- PHP ^8.3
- Blogr ^1.3
- Laravel ^12.0
- Filament ^4.0

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

[](#installation)

```
composer require happytodev/blogr-comments
```

Run the migrations:

```
php artisan migrate
```

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

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=blogr-comments-config
```

### Anti-spam (Turnstile)

[](#anti-spam-turnstile)

Get your free Turnstile keys from [Cloudflare Turnstile](https://developers.cloudflare.com/turnstile/) and add to your `.env`:

```
TURNSTILE_SITE_KEY=your_site_key
TURNSTILE_SECRET_KEY=your_secret_key
```

### Anti-spam (Akismet — optional)

[](#anti-spam-akismet--optional)

```
AKISMET_API_KEY=your_akismet_key
```

Usage
-----

[](#usage)

### Frontend

[](#frontend)

Comments automatically appear at the bottom of each blog post. No additional setup needed.

### Admin — Moderation

[](#admin--moderation)

Navigate to **Comments** in your Filament admin sidebar to:

- View all comments sorted by status
- Filter by status (pending, approved, rejected, spam)
- Approve, reject, or mark as spam (individual or bulk)
- View comment details with full metadata

### Admin — Settings

[](#admin--settings)

Go to **Comments → Settings** to configure:

- Moderation mode (pre/post/trust)
- Email notifications (owner + replies + digest)
- Anti-spam providers
- Rate limits
- Nesting depth
- Display options (comment count on articles)

Testing
-------

[](#testing)

```
vendor/bin/pest
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance96

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~5 days

Total

6

Last Release

19d ago

Major Versions

1.1.3 → 2.0.02026-07-07

### Community

Maintainers

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

---

Top Contributors

[![happytodev](https://avatars.githubusercontent.com/u/425998?v=4)](https://github.com/happytodev "happytodev (38 commits)")

---

Tags

blogcommentsfilamentphpblogr

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.8k2](/packages/crumbls-layup)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)

PHPackages © 2026

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