PHPackages                             hankin/laravel-comment - 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. hankin/laravel-comment

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

hankin/laravel-comment
======================

Just another comment system for your laravel project

v0.1(3y ago)021MITPHP

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hankin-h-k/laravel-comment)[ Packagist](https://packagist.org/packages/hankin/laravel-comment)[ Docs](https://github.com/hankin-h-k/laravel-comment)[ RSS](/packages/hankin-laravel-comment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-comment
===============

[](#laravel-comment)

### 部署步骤

[](#部署步骤)

```
$ composer require hankin/laravel-comment

```

If you don't use auto-discovery, or using Laravel version &lt; 5.5 Add service provider to your app.php file

`\Hankin\LaravelComment\CommentServiceProvider::class`

Publish configurations and migrations, then migrate comments table.

```
php artisan vendor:publish
php artisan migrate

```

Add canComment trait to your User model.

```
use Hankin\LaravelComment\CanComment;

class User extends Model
{
    use canComment;

    // ...
}

```

Add Commentable interface and HasComments trait to your commentable model(s).

```
use Hankin\LaravelComment\Contracts\Commentable;
use Hankin\LaravelComment\HasComments;

class Product extends Model implements Commentable
{
    use HasComments;

    // ...
}

```

If you want to have your own Comment Model create a new one and extend my Comment model.

```
use Hankin\LaravelComment\Models\Comment LaravelComment;

class Comment extends LaravelComment
{
    // ...
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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

Unknown

Total

1

Last Release

1124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fe64026dc7874feb142332913ac5a1e65b2ced46194ef141247a550ec4821e2?d=identicon)[hankin-h-k](/maintainers/hankin-h-k)

---

Top Contributors

[![hankin-h-k](https://avatars.githubusercontent.com/u/24538175?v=4)](https://github.com/hankin-h-k "hankin-h-k (8 commits)")

---

Tags

commentlaravel-commenthankin

### Embed Badge

![Health badge](/badges/hankin-laravel-comment/health.svg)

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

###  Alternatives

[friendsofsymfony/comment-bundle

This Bundle provides threaded comment functionality for Symfony applications

460751.2k5](/packages/friendsofsymfony-comment-bundle)[risul/laravel-like-comment

Ajax based site wide like and comment system for laravel

1116.9k](/packages/risul-laravel-like-comment)[rmrevin/yii2-comments

Comments module for Yii2

5130.8k](/packages/rmrevin-yii2-comments)

PHPackages © 2026

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