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

ActivePackage

muan/laravel-comments
=====================

Comments package for Laravel

0.1.0(7y ago)2441MITPHPPHP &gt;=7.0

Since May 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mustardandrew/muan-laravel-comments)[ Packagist](https://packagist.org/packages/muan/laravel-comments)[ RSS](/packages/muan-laravel-comments/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Maun Laravel Comments package
=============================

[](#maun-laravel-comments-package)

[![Maintainability](https://camo.githubusercontent.com/cc24f985d7426ec0cfe52d1768842ffe7fde7a71024a14e6409c5e5de7db82b8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62353834396362323131333936343331316339322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/mustardandrew/muan-laravel-comments/maintainability)

Used for create comments.

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

[](#requirements)

- "php": "&gt;=7.0"

Install
-------

[](#install)

1. Type next command in your terminal:

```
composer require muan/laravel-comments
```

2. Add the service provider to your config/app.php file in section providers:

> Laravel 5.5 uses Package Auto-Discovery, so does not require you to manually add the ServiceProvider.

```
'providers' => [
    // ...
    Muan\Comments\Providers\CommentsServiceProvider::class,
    // ...
],
```

3. Use the following trait on your User model

```
// Use trait
use Muan\Comments\Traits\CanComment;

class User extends Authenticatable
{
    use CanComment;

    // ...
}
```

Add Commentable trait to your commentable model(s).

```
use Muan\Comments\Traits\Commentable;
```

Usage
-----

[](#usage)

```
$user = App\User::find(1);
$product = App\Product::find(1);

// Add comment
$comment = $user->addComment($product, 'Lorem ipsum...');

// or
$comment = $product->addComment($user, 'Lorem ipsum...');

// Approve comment
$comment->approve();

// get comments
$comments = $user->comments;

// get comments
$comments = $product->comments;
```

License
-------

[](#license)

Muan Laravel Admin package is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

2908d ago

### Community

Maintainers

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

---

Top Contributors

[![mustardandrew](https://avatars.githubusercontent.com/u/7501643?v=4)](https://github.com/mustardandrew "mustardandrew (8 commits)")

---

Tags

laravelpackagemessagescomments

### Embed Badge

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

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

###  Alternatives

[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

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