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

ActiveLibrary

jncinet/laravel-comment
=======================

laravel comment

1.0.1(5y ago)08MITPHP

Since Mar 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jncinet/laravel-comment)[ Packagist](https://packagist.org/packages/jncinet/laravel-comment)[ Docs](https://www.zhangye.org.cn)[ RSS](/packages/jncinet-laravel-comment/feed)WikiDiscussions main Synced 6d ago

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

会员评论
====

[](#会员评论)

安装
--

[](#安装)

```
$ composer require jncinet/laravel-comment
```

配置
--

[](#配置)

```
$ php artisan vendor:publish --provider="Jncinet\\LaravelComment\\CommentServiceProvider"
```

使用
--

[](#使用)

### 会员模型添加

[](#会员模型添加)

```
// ...
use Jncinet\LaravelComment\Traits\Commenter;

class User extends Authenticatable
{
    use Commenter;

    // ...
}
```

### 用户API

[](#用户api)

```
$user = User::find(1);
// 用户所有评论
$user->comments;
// 用户指定模型评论
$user->getCommentItems(Article::class)->get();
```

### 内容模型添加

[](#内容模型添加)

```
// ...
use Jncinet\LaravelComment\Traits\Commentable;

class Article extends Model
{
    use Commentable;

    // ...
}
```

### 内容API

[](#内容api)

```
$article = Article::find(1);
// 文章所有评论
$article->comments;
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

1879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63541651e21494722aa0d364dca6dbaa132d0ee4e9f85a741b5eff8c587f57ba?d=identicon)[jncinet](/maintainers/jncinet)

---

Tags

laravelcomment

### Embed Badge

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

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

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[risul/laravel-like-comment

Ajax based site wide like and comment system for laravel

1116.9k](/packages/risul-laravel-like-comment)[thyagobrejao/laravel-commentable

Polymorphic threaded comments for Laravel

1410.4k1](/packages/thyagobrejao-laravel-commentable)[laravolt/mural

Laravel comment stream

101.3k](/packages/laravolt-mural)

PHPackages © 2026

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