PHPackages                             admsys/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. admsys/laravel-comments

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

admsys/laravel-comments
=======================

Sistema de comentarios simple para aplicaciones Laravel

v1.0.1(2y ago)022[2 PRs](https://github.com/admsys-spa/laravel-comments/pulls)MITPHPPHP ^8.0

Since Aug 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/admsys-spa/laravel-comments)[ Packagist](https://packagist.org/packages/admsys/laravel-comments)[ Docs](https://github.com/admsys/laravel-comments)[ RSS](/packages/admsys-laravel-comments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (5)Used By (0)

Sistema de comentarios hecho simple.
====================================

[](#sistema-de-comentarios-hecho-simple)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9e4bb05ace2a0428cb567e6b97a115a202f982eff5ad1fab858ee1687789a262/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61646d7379732f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/admsys/laravel-comments)[![GitHub Tests Action Status](https://camo.githubusercontent.com/506d01481d6814a712740e46d06baa6f102ba37be90b659b19f5cdd18ae3e214/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61646d7379732f6c61726176656c2d636f6d6d656e74732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/admsys/laravel-comments/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6180442a49f7a06a752087f454ae42a611e41d6da7e89c9c07c4da31f43c54f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61646d7379732f6c61726176656c2d636f6d6d656e74732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/admsys/laravel-comments/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/390197f9418df0dfeee64301243f631b11faa61d4fa1a3295a07fb8a5d01f858/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61646d7379732f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/admsys/laravel-comments)

Este paquete proporciona un sistema de comentarios simple para aplicaciones Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require admsys/laravel-comments
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="comments-migrations"
php artisan migrate
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [

    'model' => \Admsys\Comments\Models\Comment::class,
    'user' => \App\Models\User::class,

];
```

Usage
-----

[](#usage)

Start by using the `Admsys\Comments\Concerns\HasComments` trait on your model.

```
use Admsys\Comments\Concerns\HasComments;

class Post extends Model
{
    use HasComments;
}
```

This trait adds a `comments(): MorphMany` relationship on your model. It also adds a new `comment()` method that can be used to quickly add a comment to your model.

```
$post = Post::first();

$post->comment('Hello, world!');
```

By default, the package will use the authenticated user's ID as the "commentor". You can customise this by providing a custom `User` to the `comment()` method.

```
$post->comment('Hello, world!', user: User::first());
```

The package also supports `parent -> children` relationships for comments. This means that a comment can `belongTo` another comment.

```
$post->comment('Thanks for commenting!', parent: Comment::find(2));
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alexander Díaz](https://github.com/adiazm)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.1% 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 ~0 days

Total

2

Last Release

993d ago

Major Versions

v0.2 → v1.0.12023-08-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/598dc01eeeff08109f40c0eec3d4309d41c5aedbf18fbe2551423e30000662ec?d=identicon)[adiazm](/maintainers/adiazm)

---

Top Contributors

[![adiazm](https://avatars.githubusercontent.com/u/13708873?v=4)](https://github.com/adiazm "adiazm (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravellaravel-comments

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ryangjchandler/laravel-comments

A dead-simple comments package for Laravel.

22118.2k](/packages/ryangjchandler-laravel-comments)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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