PHPackages                             sudo/comment - 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. sudo/comment

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

sudo/comment
============

Comment Sudo package

2.2.3(5y ago)0223MITJavaScript

Since Jun 29Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Sudo-E-Commerce/comments)[ Packagist](https://packagist.org/packages/sudo/comment)[ RSS](/packages/sudo-comment/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)DependenciesVersions (8)Used By (0)

Hướng dẫn sử dụng Sudo Page
---------------------------

[](#hướng-dẫn-sử-dụng-sudo-page)

**Giới thiệu:** Đây là package dùng để quản lý bình luận của SudoCms.

Mặc định package sẽ tạo ra giao diện quản lý cho toàn bộ bình luận được đặt tại `/{admin_dir}/comments`, trong đó admin\_dir là đường dẫn admin được đặt tại `config('app.admin_dir')`

### Cài đặt để sử dụng

[](#cài-đặt-để-sử-dụng)

- Package cần phải có base `sudo/core` để có thể hoạt động không gây ra lỗi
- Để có thể sử dụng Package cần require theo lệnh `composer require sudo/comment`
- Chạy `php artisan migrate` để tạo các bảng phục vụ cho package

Publish
-------

[](#publish)

Mặc định khi chạy lệnh `php artisan sudo/core` đã sinh luôn cho package này, nhưng có một vài trường hợp chỉ muốn tạo lại riêng cho package này thì sẽ chạy các hàm dưới đây:

- Khởi tạo chung theo core
    - Tạo configs `php artisan vendor:publish --tag=sudo/core`
    - Chỉ tạo configs `php artisan vendor:publish --tag=sudo/core/config`
    - Chỉ tạo assets `php artisan vendor:publish --tag=sudo/core/asset`
    - Chỉ tạo views `php artisan vendor:publish --tag=sudo/core/view`
- Khởi tạo riêng theo package
    - Tạo configs `php artisan vendor:publish --tag=sudo/comment`
    - Chỉ tạo configs `php artisan vendor:publish --tag=sudo/comment/config`
    - Chỉ tạo assets `php artisan vendor:publish --tag=sudo/comment/asset`
    - Chỉ tạo views `php artisan vendor:publish --tag=sudo/comment/view`

### Cấu hình tại Menu

[](#cấu-hình-tại-menu)

```
[
	'type' 		=> 'single',
	'name' 		=> 'Bình luận',
	'icon' 		=> 'fas fa-comments',
	'route' 	=> 'admin.comments.index',
	'role'		=> 'comments_index'
],

```

- Vị trí cấu hình được đặt tại `config/SudoMenu.php`
- Để có thể hiển thị tại menu, chúng ta có thể đặt đoạn cấu hình trên tại `config('SudoMenu.menu')`

### Cấu hình tại Module

[](#cấu-hình-tại-module)

```
'comments' => [
	'name' 			=> 'Bình luận',
	'permision' 	=> [
		[ 'type' => 'index', 'name' => 'Truy cập' ],
		[ 'type' => 'create', 'name' => 'Thêm' ],
		[ 'type' => 'edit', 'name' => 'Sửa' ],
		[ 'type' => 'restore', 'name' => 'Lấy lại' ],
		[ 'type' => 'delete', 'name' => 'Xóa' ],
	],
],

```

- Vị trí cấu hình được đặt tại `config/SudoModule.php`
- Để có thể phân quyền, chúng ta có thể đặt đoạn cấu hình trên tại `config('SudoModule.modules')`

### Cách dùng

[](#cách-dùng)

Include view dưới đây để có thể nhúng bình luận tại vị trí được sử dụng

```
@include('Comment::list', [
	'type' => 'posts',
	'type_id' => 1,
	'regulation_link' => '#',
	'no_comment_text' => 'Hãy để lại bình luận của bạn tại đây!'
])

```

Trong đó

- type: là tên bảng và cũng là tên module
- type\_id: là id thuộc bảng
- regulation\_link: Đường dẫn đến trang `Quy định bình luận`
- no\_comment\_text: Khi không có comments sẽ hiển thị text này

Truy cập `config/SudoComment.php` (Sau khi publish) để biết thêm các giá trị được hỗ trợ khác.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~16 days

Recently: every ~25 days

Total

7

Last Release

2050d ago

Major Versions

1.0.0 → 2.0.02020-06-30

1.0.x-dev → 2.0.12020-07-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fae158f0bdfab51fba69937e810ed2db9f11a04eef301fd0c82cb568081ff86?d=identicon)[sudoedev](/maintainers/sudoedev)

---

Top Contributors

[![hieunvph04479](https://avatars.githubusercontent.com/u/36782331?v=4)](https://github.com/hieunvph04479 "hieunvph04479 (14 commits)")[![Duynguyen0897](https://avatars.githubusercontent.com/u/44739285?v=4)](https://github.com/Duynguyen0897 "Duynguyen0897 (2 commits)")

### Embed Badge

![Health badge](/badges/sudo-comment/health.svg)

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

###  Alternatives

[roundcube/carddav

CardDAV adapter for connecting to CardDAV-enabled addressbooks

28155.3k](/packages/roundcube-carddav)[fale/isbn

ISBN library

88524.8k6](/packages/fale-isbn)[izniburak/laravel-auto-routes

Auto Route Generating (Auto-Discovery) Package for Laravel

23645.3k](/packages/izniburak-laravel-auto-routes)[nystudio107/craft-typogrify

Typogrify prettifies your web typography by preventing ugly quotes and 'widows' and more

70381.7k18](/packages/nystudio107-craft-typogrify)[efureev/laravel-trees

Multi-Tree structures for Laravel

14253.3k4](/packages/efureev-laravel-trees)[tuupola/base32

Base32 encoder and decoder for arbitrary data

14552.2k6](/packages/tuupola-base32)

PHPackages © 2026

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