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

ActiveLibrary

lakm/laravel-comments
=====================

Integrate seamless commenting functionality into your Laravel project.

4.1.1(2mo ago)40012.9k—2.8%22[3 PRs](https://github.com/Lakshan-Madushanka/laravel-comments/pulls)1MITPHPPHP ^8.3CI failing

Since Jun 13Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/Lakshan-Madushanka/laravel-comments)[ Packagist](https://packagist.org/packages/lakm/laravel-comments)[ GitHub Sponsors](https://github.com/Lakshan-Madushanka)[ RSS](/packages/lakm-laravel-comments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (79)Used By (1)

**[Documentation](https://lakm.gitbook.io/commenter)** | **[Admin Panel](https://github.com/Lakshan-Madushanka/laravel-comments-admin-panel)** | **[Overview](#overview)** | **[Articles](#articles)** | **[Key Features](#key-features)** | **[Why Commenter](#why-commenter)** | **[Quick Start](#quick-start)** | **[Themes](#themes)** | **[Demo](#demo)** | **[Changelog](#changelog)** | **[Testing](#testing)** | **[Roadmap](#roadmap)** | **[Security](#security)** | **[License](#license)** | **[Sponsor](#sponsor-this-project)**

[![](https://private-user-images.githubusercontent.com/47297673/369755178-499c9fde-d566-4675-a0fa-afdb837e2faa.jpeg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUzNDQyNzcsIm5iZiI6MTc3NTM0Mzk3NywicGF0aCI6Ii80NzI5NzY3My8zNjk3NTUxNzgtNDk5YzlmZGUtZDU2Ni00Njc1LWEwZmEtYWZkY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Y3YzkwZjVlMmY2NTJjYTc0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.PUtVsPXBHFbzx4pjev_xskZ4TF-NZ2MAgOJMWWvQM5I)
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#)

[![](https://private-user-images.githubusercontent.com/47297673/340949669-73ed97a6-9bdd-4b4e-8a87-fd5027d67149.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUzNDQyNzcsIm5iZiI6MTc3NTM0Mzk3NywicGF0aCI6Ii80NzI5NzY3My8zNDA5NDk2NjktNzNlZDk3YTYtOWJkZC00YjRlLThhODctZmQ1MDI3ZDY3MTQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDIzMDYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1ZGQ1YThmYzU2YzM2OTRhNDM5YmUwNzBkNGI3YTQ0NGEyNDIyYjMwZTYzZTkxNWRkMmEzYTQ1ZjIxN2EyNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.86SVmC2xz3RfOa1ZqGFL8Owamds_Q_giV-eZEgkA-bU)](https://private-user-images.githubusercontent.com/47297673/340949669-73ed97a6-9bdd-4b4e-8a87-fd5027d67149.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUzNDQyNzcsIm5iZiI6MTc3NTM0Mzk3NywicGF0aCI6Ii80NzI5NzY3My8zNDA5NDk2NjktNzNlZDk3YTYtOWJkZC00YjRlLThhODctZmQ1MDI3ZDY3MTQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDIzMDYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1ZGQ1YThmYzU2YzM2OTRhNDM5YmUwNzBkNGI3YTQ0NGEyNDIyYjMwZTYzZTkxNWRkMmEzYTQ1ZjIxN2EyNmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.86SVmC2xz3RfOa1ZqGFL8Owamds_Q_giV-eZEgkA-bU)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-1)

***Everything you need for your commenting system***

A Laravel package that brings powerful commenting functionality to your apps 😍

[![Laravel](https://camo.githubusercontent.com/3020a5644b41b0a6e42c716ae0486d76e1af9fdfb5ccbce77edf26d8c4e0554e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531302e3025323025374325323025354531312e302d726564)](https://laravel.com)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/30b8577fabc52efebedcc58b57c63f8c118312431cda442ea193f171e0bdd2e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f4c616b7368616e2d4d6164757368616e6b612f6c61726176656c2d636f6d6d656e74732f72756e2d74657374732e796d6c)](https://github.com/Lakshan-Madushanka/laravel-comments/actions?query=workflow%3ATests+branch%3Amain)[![Packagist Version](https://camo.githubusercontent.com/b4a15f2eb839aca1ee22cd40cac469741bb35093cfab292b930919351983c806/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616b6d2f6c61726176656c2d636f6d6d656e7473)](https://packagist.org/packages/lakm/laravel-comments)[![Downloads](https://camo.githubusercontent.com/61b9ff808bcb42b7814a41992a6f6ee6e0721c53b1edfaa18641c0a32c2e2234/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c616b6d2f6c61726176656c2d636f6d6d656e7473)](https://packagist.org/packages/lakm/laravel-comments)[![Monthly Downloads](https://camo.githubusercontent.com/0a311ee38780f554b83ee72ef22c42b4af9150fec997305694e8c1f68ead581d/68747470733a2f2f706f7365722e707567782e6f72672f6c616b6d2f6c61726176656c2d636f6d6d656e74732f642f6d6f6e74686c79)](https://packagist.org/packages/lakm/laravel-comments)[![GitHub License](https://camo.githubusercontent.com/09ad58a013ff815ae5f58a345629c38c574cacf2a805d63eb23c1493264615a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c616b7368616e2d4d6164757368616e6b612f6c61726176656c2d636f6d6d656e7473)](https://github.com/Lakshan-Madushanka/laravel-comments/blob/main/LICENSE.md)

Overview
--------

[](#overview)

Commenter is a feature-rich, modern package with an admin panel designed to address all your commenting needs. With this package, you won't need any additional tools for the comment functionality in your Laravel projects.

See the [documentation](https://lakm.gitbook.io/commenter/basics/installation) for detailed installation and usage instructions.

```

```

### Articles

[](#articles)

- [Laravel News](https://laravel-news.com/laravel-commentable-package)
- [Enable commenting in seconds with Laravel ](https://medium.com/@epmadushanka/enable-commenting-in-seconds-with-laravel-6cb7cc7eb6f2)

[![screenshot](https://camo.githubusercontent.com/e2a8ab26ab5728bf477cdbeec9733decc0d4091b8575c52b2cf1c4086a122d2e/68747470733a2f2f6769746875622d70726f64756374696f6e2d757365722d61737365742d3632313064662e73332e616d617a6f6e6177732e636f6d2f34373239373637332f3530353833373639352d34663032303464362d646663332d346462622d383966392d3964303133616137656366392e706e673f582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d414b494156434f44594c5341353350514b345a41253246323032353130323725324675732d656173742d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323531303237543036313633345a26582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d6236663536656665336535356661613262333638373338386536393531356563353835303833623939333161666432303638386237353762376162666533666626582d416d7a2d5369676e6564486561646572733d686f7374)](https://camo.githubusercontent.com/e2a8ab26ab5728bf477cdbeec9733decc0d4091b8575c52b2cf1c4086a122d2e/68747470733a2f2f6769746875622d70726f64756374696f6e2d757365722d61737365742d3632313064662e73332e616d617a6f6e6177732e636f6d2f34373239373637332f3530353833373639352d34663032303464362d646663332d346462622d383966392d3964303133616137656366392e706e673f582d416d7a2d416c676f726974686d3d415753342d484d41432d53484132353626582d416d7a2d43726564656e7469616c3d414b494156434f44594c5341353350514b345a41253246323032353130323725324675732d656173742d312532467333253246617773345f7265717565737426582d416d7a2d446174653d3230323531303237543036313633345a26582d416d7a2d457870697265733d33303026582d416d7a2d5369676e61747572653d6236663536656665336535356661613262333638373338386536393531356563353835303833623939333161666432303638386237353762376162666533666626582d416d7a2d5369676e6564486561646572733d686f7374)

Key Features
------------

[](#key-features)

- ❤️ Simple, modern, and user-friendly interfaces.
- 📱 Mobile responsiveness.
- ⛯ Dark mode support.
- 📝 WYSIWYG editor.
- 📔 Syntax highlighting.
- 🔒 Robust security features.
- 🔑 Effective spam prevention.
- 🤩 Reaction options.
- 📞 Support for threaded replies.
- 👤 User mention functionality.
- 👥 Display list of users who reacted (auth mode only).
- 🔢 Pagination.
- 👮‍♂️Support for both authentication mode and guest mode (mutually exclusive).
- 🔍 Advanced filtering and sorting options.
- 🥰 Responsive design using a combination of Livewire and Alpine.js.
- 🚀 Optimized performance. And much more.

Why Commenter
-------------

[](#why-commenter)

The commenting feature is a common requirement for most websites. Allowing users to comment enables interaction and enhances the user experience. While Laravel offers a wealth of packages to meet various project needs, there are limited options when it comes to commenting features.

### Here are some drawbacks of existing commenting packages:

[](#here-are-some-drawbacks-of-existing-commenting-packages)

- Outdated: Uses outdated technologies and is not actively maintained.
- Lack of Features: Missing many essential features.
- No Admin Panel: Requires additional time to implement an admin panel independently.
- Bad Design: Interfaces are not user-friendly.
- Not Mobile Responsive: Not optimized for mobile devices.
- Performance Issues: May cause performance slowdowns.
- Lack of Configurability: Limited options for customization and configuration.

Due to these issues, most companies tend to opt for commercial packages or plugins. However, spending extra money on commercial packages reduces the company's overall profit. This package is developed to address all these shortcomings.

> As a full-stack developer, I have personally encountered these issues. That's why I developed this package—not only for my own projects but also to benefit other developers.

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require lakm/laravel-comments -W
php artisan commenter:install
```

### Usage

[](#usage)

Implement `CommentableContract` and import `Commentable` trait in commentable model.

```
use LakM\Commenter\Concerns\Commentable;
use LakM\Commenter\Contracts\CommentableContract;

class Post extends Model implements CommentableContract
{
    use Commentable;
}
```

Implement `CommenterContract` and import `Commenter` trait in commenter model.

```
use LakM\Commenter\Concerns\Commenter;
use LakM\Commenter\Contracts\CommenterContract;

class User extends Model implements CommenterContract
{
    use Commenter;
}
```

Include styles in your layout.

```

        @commenterStyles

```

Include scripts in your layout.

```

        @commenterScripts

```

Include the comments component with the related model.

```

```

Warning

You can omit the index part but make sure to include the double colon. Otherwise Laravel will search for the component in project instead of package.

```

```

Themes
------

[](#themes)

You can change theme to your prefferred one. Consult documentation [here](https://lakm.gitbook.io/commenter/basics/themes) for more info.

Demo
----

[](#demo)

### Project

[](#project)

### Mini video

[](#mini-video)

### Full Video

[](#full-video)

Note

This mini demo video provides a basic overview of Commenter. The full scope and features of Commenter are much more extensive. A comprehensive video will be published with the stable release.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/Lakshan-Madushanka/laravel-comments/blob/main/CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
./vendor/bin/pest
```

Roadmap
-------

[](#roadmap)

FeatureStatusVersionComment/Reply ReportTBI-Guest mode email verification✅[2.0.0](https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/2.0.0)Dark Mode Support✅[2.0.0](https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/2.0.0)Pin CommentsTBINested Replies✅[3.0.0](https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/3.0.0)Security
--------

[](#security)

Please see [here](https://github.com/Lakshan-Madushanka/laravel-comments/blob/main/SECURITY.md) for our security policy.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/Lakshan-Madushanka/laravel-comments/blob/main/LICENSE.md) for more information.

Sponsor this project
--------------------

[](#sponsor-this-project)

You might think we're biased, but this is genuinely one of the best commenting systems available for paid or free (we doubt there’s a paid solution that’s as tailored to your needs as this one). We're dedicated to continuously improving this package and meeting your requirements. Isn’t it reassuring to have a well-tested, feature-rich commenting system available for free for your Laravel projects?

We truly appreciate any sponsorship you offer. Your contribution is a direct investment in your future as well, with every penny supporting the growth of this project and other open-source initiatives.

If you find value in this project, please consider supporting it by visiting the sponsor page: . Your support means a lot 💗!

Intertwined packages
--------------------

[](#intertwined-packages)

- [TrueReviewer](https://truereviewer.netlify.app)

We often find that the majority of packages using Commenter also require a review and rating system. With our [TrueReviewer](https://truereviewer.netlify.app) package, you can seamlessly integrate a complete review and rating solution into your project without breaking a sweat.

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~9 days

Recently: every ~30 days

Total

66

Last Release

81d ago

Major Versions

v1.x-dev → 2.0.02024-09-24

2.3.6 → 3.0.02025-06-27

v2.x-dev → 3.0.12025-07-02

3.0.5 → 4.0.02025-10-27

v3.x-dev → 4.0.12026-01-06

PHP version history (3 changes)1.0.0-betaPHP ^8.1|^8.2|^8.3

2.0.0PHP ^8.1

4.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/88cfad5d6377be18e9544dc9796e4dd2979faeff1984ad105f83bc979ac25c0f?d=identicon)[Lakshan-Madushanka](/maintainers/Lakshan-Madushanka)

---

Top Contributors

[![Lakshan-Madushanka](https://avatars.githubusercontent.com/u/47297673?v=4)](https://github.com/Lakshan-Madushanka "Lakshan-Madushanka (715 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (11 commits)")[![zvizvi](https://avatars.githubusercontent.com/u/4354421?v=4)](https://github.com/zvizvi "zvizvi (6 commits)")[![phpfour](https://avatars.githubusercontent.com/u/171715?v=4)](https://github.com/phpfour "phpfour (1 commits)")[![viktorruskai](https://avatars.githubusercontent.com/u/9396295?v=4)](https://github.com/viktorruskai "viktorruskai (1 commits)")[![wilianmaique](https://avatars.githubusercontent.com/u/31930046?v=4)](https://github.com/wilianmaique "wilianmaique (1 commits)")

---

Tags

comment-systemlaravellivewire3laravellivewirecommentsalpinejs

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[tanthammar/tall-forms

A dynamic, responsive Laravel Livewire form generator with realtime validation, file uploads, array fields, and more.

68138.3k1](/packages/tanthammar-tall-forms)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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