PHPackages                             alexwenzel/laravel-commentary - 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. alexwenzel/laravel-commentary

ActiveLibrary

alexwenzel/laravel-commentary
=============================

A package for Laravel to post a comment on an article and to manage them.

v1.0.1(11y ago)5451PHPPHP &gt;=5.4.0

Since Aug 19Pushed 11y ago2 watchersCompare

[ Source](https://github.com/alexwenzel/laravel-commentary)[ Packagist](https://packagist.org/packages/alexwenzel/laravel-commentary)[ RSS](/packages/alexwenzel-laravel-commentary/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel commentary
==================

[](#laravel-commentary)

A package for Laravel to post a comment on an article and to manage them.

Description
-----------

[](#description)

This package comes with 3 parts:

- comment form
- comment listing
- comment management

The form allows anyone to post a comment on something. It can be applied to any view. The same goes for ther comment listing.

The comment management allows someone to

- approve
- unapprove
- edit
- trash

comments.

Screenshots
-----------

[](#screenshots)

### Form

[](#form)

[![form](img/form.png)](img/form.png)

### Management

[](#management)

[![management](img/management.png)](img/management.png)

Implementation
--------------

[](#implementation)

### ServiceProvider

[](#serviceprovider)

`'Alexwenzel\LaravelCommentary\LaravelCommentaryServiceProvider'`

### Namespace

[](#namespace)

The package registers the following namespace: `laravel-commentary`

### Migration

[](#migration)

```
php artisan migrate --package="alexwenzel/laravel-commentary"

```

The migration creates a table named: `laravel-commentary-comments`

### Comment controllers

[](#comment-controllers)

There is a controller to manage the comments, and there is a controller for the frontend stuff. The management controller is best behind a secured route.

Include something like the following line in your `routes.php`:

```
/**
 * Comment Management
 */
Route::controller('commentsmanagement', 'Alexwenzel\LaravelCommentary\ManagementController');

/**
 * Comment Frontend
 */
Route::controller('commentsfrontend', 'Alexwenzel\LaravelCommentary\FrontendController');
```

If you need to customize the management section, [override](http://laravel.com/docs/packages#package-views) the views within your project.

### Comment form

[](#comment-form)

To display the comment form, include something like the following line in your view:

```
{{ View::make('laravel-commentary::comment-form', array('entity'=>'my_article_id')) }}
```

Register the controller first, otherwise you will get errors.

### Comment listing

[](#comment-listing)

To display the comments of an entity, include something like the following line in your view:

```
{{ View::make('laravel-commentary::comment-list', array('entity'=>'my_article_id')) }}
```

Register the controller first, otherwise you will get errors.

The following conditions are applied to the comment listing. Comments:

- have to be approved
- are ordered by creation time

### Comment controller behaviour

[](#comment-controller-behaviour)

The behaviour can be customized by overriding `CommentaryActionHandler` class.

### Events

[](#events)

The following events are fired:

```
laravel-commentary.comment-posted // first parameter is the comment
laravel-commentary.comment-approved // first parameter is the comment
laravel-commentary.comment-unapproved // first parameter is the comment
laravel-commentary.comment-trashed // first parameter is the comment

```

### Assets

[](#assets)

This package comes with default styles.

```
php artisan asset:publish alexwenzel/laravel-commentary

```

### Localization

[](#localization)

Read here:

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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 ~6 days

Total

3

Last Release

4272d ago

### Community

Maintainers

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

---

Top Contributors

[![alexwenzel](https://avatars.githubusercontent.com/u/3659928?v=4)](https://github.com/alexwenzel "alexwenzel (13 commits)")

---

Tags

laravelcomments

### Embed Badge

![Health badge](/badges/alexwenzel-laravel-commentary/health.svg)

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

###  Alternatives

[laravelista/comments

Comments for Laravel.

744192.4k1](/packages/laravelista-comments)[tizis/lara-comments

Comments system for your Laravel application. Features: can be used to comment on any model, HTML filter customization (HTMLPurifier), API, comment rating, replies, events, auth rules ...

1194.7k](/packages/tizis-lara-comments)[fbf/laravel-comments

A Laravel 4 package for adding commenting to a website that has user accounts

204.6k](/packages/fbf-laravel-comments)

PHPackages © 2026

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