PHPackages                             sinclairt/commentable - 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. sinclairt/commentable

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

sinclairt/commentable
=====================

Add comments to objects

2.0.1(9y ago)010MITPHP

Since Dec 14Pushed 9y agoCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (0)

Commentable
===========

[](#commentable)

### Installation

[](#installation)

`composer require sinclairt/commentable`

Add `Sinclair\Commentable\CommentableServiceProvider::class` to `config\app.php`

`php artisan vendor:publish`

Run the migrations `php artisan migrate`

### Usage

[](#usage)

Set your user class in the commentable config file.

Use the trait `use Commentable;` in your model. now you can create comments against objects in your app.

*Please note that the relationship is now a polymorphic one-to-many, a comment can belong to any ONE object, and an object can have MANY comments. It is no longer many-to-many.*

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~67 days

Recently: every ~96 days

Total

8

Last Release

3333d ago

Major Versions

1.0.5 → 2.0.02016-09-23

### Community

Maintainers

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

---

Top Contributors

[![sinclairt](https://avatars.githubusercontent.com/u/16877448?v=4)](https://github.com/sinclairt "sinclairt (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinclairt-commentable/health.svg)

```
[![Health](https://phpackages.com/badges/sinclairt-commentable/health.svg)](https://phpackages.com/packages/sinclairt-commentable)
```

###  Alternatives

[cloudxns/cloud-xns-api-sdk-php

CloudXNS SDK FILES

2283.2k](/packages/cloudxns-cloud-xns-api-sdk-php)[omnilight/yii2-sypexgeo

Yii2 extension for Sypex Geo API (http://sypexgeo.net)

17102.0k](/packages/omnilight-yii2-sypexgeo)

PHPackages © 2026

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