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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alexwenzel/laravel-commentary

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

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 3w 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 57% 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

4322d ago

### Community

Maintainers

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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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