PHPackages                             ptrml/polycomments - 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. ptrml/polycomments

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

ptrml/polycomments
==================

Universal comments for Laravel 5+

06PHP

Since Sep 15Pushed 9y agoCompare

[ Source](https://github.com/ptrml/polycomments)[ Packagist](https://packagist.org/packages/ptrml/polycomments)[ RSS](/packages/ptrml-polycomments/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Polycomments
============

[](#polycomments)

Simple hookable commenting system leveraging polymorphic relationships. **Early super rudimentary pre-alfa. May change drastically at any time.**

\##Installation

\###Step 1: Backend ####Install via composer:

```
composer require ptrml/polycomments "dev-master"
```

\####Register the service provider in **conf/app.php**:

```
'providers' => [
...
Ptrml\Polycomments\PolycommentsServiceProvider::class,
...
],
```

\####Publish stuff and migrate:

```
php artisan vendor:publish --tag=polycomments
```

```
php artisan migrate
```

\####Implement both the interface and trait on your models:

```
class Post extends Model implements CommentableInterface
{
    use Commentable;
    ...
}
```

(Switch the Post model with your own)

\###Step 2: Frontend ####Append **PolycommentsController.php** with your calls (Post is an example model):

```
class PolycommentsController extends Controller
{
    function commentPost(Request $request,$id)
    {
        Commenter::comment(Post::find($id),$request);
        return redirect("home");
    }
    ...
}
```

(Switch the Post model with your own) ####Append routes:

```
Route::post('/polycomments/post/{id}', 'PolycommentsController@commentPost')->name('polycomments.post');
```

\####Add the premade comments block to the views of your model:

```
@include('polycomments::polycomments',['polycomments_subject'=>$post,'polycomments_route'=>'polycomments.post'])
```

(polycomments\_subject is your models instance, polycomments\_route is the named route)

\###Step 3: Customization ####Edit **views/vendor/polycomments/\*** for a custom look and feel:

\###Enjoy License
-------

[](#license)

[MIT license](http://opensource.org/licenses/MIT).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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://avatars.githubusercontent.com/u/33513564?v=4)[pepo123](/maintainers/pepo123)[@pepo123](https://github.com/pepo123)

---

Top Contributors

[![ptrml](https://avatars.githubusercontent.com/u/4503346?v=4)](https://github.com/ptrml "ptrml (19 commits)")

### Embed Badge

![Health badge](/badges/ptrml-polycomments/health.svg)

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

###  Alternatives

[ptachoire/cssembed

Css url embed library.

191.4M36](/packages/ptachoire-cssembed)[haringsrob/livewire-datepicker

A standalone livewire datepicker component without dependencies

4116.7k](/packages/haringsrob-livewire-datepicker)

PHPackages © 2026

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