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 yesterday

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 52% 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

3380d ago

Major Versions

1.0.5 → 2.0.02016-09-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16877448?v=4)[Tom Sinclair](/maintainers/sinclairt)[@sinclairt](https://github.com/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

[mischiefcollective/colorjizz

Classes for manipulating colors, converting to different formats and finding color harmonies

285859.7k16](/packages/mischiefcollective-colorjizz)[phpsysinfo/phpsysinfo

phpSysInfo is a customizable PHP Script that parses /proc, and formats information nicely. It will display information about system facts like Uptime, CPU, Memory, PCI devices, SCSI devices, IDE devices, Network adapters, Disk usage, and more.

1.4k26.5k3](/packages/phpsysinfo-phpsysinfo)[jakezatecky/array_group_by

A function that groups/splits an array by the values of a given key or keys.

98201.6k2](/packages/jakezatecky-array-group-by)[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

62200.8k22](/packages/kornrunner-ethereum-offline-raw-tx)

PHPackages © 2026

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