PHPackages                             rtablada/l4-comment-all-things - 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. rtablada/l4-comment-all-things

ActiveLibrary

rtablada/l4-comment-all-things
==============================

054PHP

Since Jan 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rtablada/comment-all-things)[ Packagist](https://packagist.org/packages/rtablada/l4-comment-all-things)[ RSS](/packages/rtablada-l4-comment-all-things/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 4 Basic Comments
------------------------

[](#laravel-4-basic-comments)

This package allows you to add comments to any of your models quickly and easily.

Installation
============

[](#installation)

Add `rtablada/l4-comment-all-things` in your `composer.json` file. Then add `Rtablada\CommentAllThings\CommentAllThingsServiceProvider` to your `providers` array, and add `'Comments' => 'Rtablada\CommentAllThings\Facades\Comments'` to your `aliases` array in `app/config/app.php`.

Adding Comments to Your Models
==============================

[](#adding-comments-to-your-models)

Any model can have comments by adding one simple line of code in the model body:

```
use Rtablada\CommentAllThings\Commentable;
```

This trait defines the comments relation and sets everything up for your parent model.

Creating a Comment
==================

[](#creating-a-comment)

Comments are just like any related model. Each comment has 3 properties `display_name`, `email`, and `contents`. To add them to your model requires a few lines of code:

```
$comment = new Rtablada\CommentAllThings\Comment(array(
	'email' => 'joe@example.com',
	'display_name' => 'Joe',
	'contents' => 'This is my comment',
));
$post = Post::find(1);
$post->comments()->save($comment);
```

Displaying Comments
===================

[](#displaying-comments)

While you could use regular Laravel to display your comments, this package gives you a simple way of displaying your comment stream and a comment form for your model with just one line of code.

```
Comments::render($post)
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rtablada-l4-comment-all-things/health.svg)

```
[![Health](https://phpackages.com/badges/rtablada-l4-comment-all-things/health.svg)](https://phpackages.com/packages/rtablada-l4-comment-all-things)
```

PHPackages © 2026

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