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

ActiveLibrary

sudo/vote
=========

Votes Sudo package

1.0.1(5y ago)099MITPHP

Since May 28Pushed 5y ago2 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)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à module đánh giá sao của SudoCms.

Mặc định package sẽ tạo ra giao diện quản lý cho module được đặt tại `/{admin_dir}/votes`, 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/vote`
- Chạy `php artisan migrate` để tạo các bảng phục vụ cho package
- Chạy php artisan vendor:publish --tag=sudo/vote để public file config, và assets ra ngoài
- Thêm câu lệnh @include('Vote::web.show', \['type'=&gt;$table, 'type\_id'=&gt;$table\_id\]) vào vị trí muốn hiển thị tính năng đánh giá
- Thêm cặp key =&gt; value trong mảng type tại file config/SudoVotes.php (File này được publics ra từ package) tương ứng với các trang có tính năng đánh giá VD: 'type' =&gt; \[ 'pages' =&gt; 'Trang đơn', 'products' =&gt; 'Sản phẩm', 'news' =&gt; 'Tin tức', \]

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

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

```
[
	'type' 		=> 'single',
	'name' 		=> 'Đánh giá sao',
	'icon' 		=> 'fas fa-star',
	'route' 	=> 'admin.votes.index',
	'role'		=> 'votes_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)

```
'votes' => [
	'name' 			=> 'Đánh giá sao',
	'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')`

### Lưu ý

[](#lưu-ý)

- Tính năng có sử dụng Font Awesome Icon nên yêu cầu sử dụng thư viện này
- Tính năng có chèn code jquery trực tiếp trong view nên yêu cầu load thư viện jquery trong cặp thẻ head để tránh lỗi.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~132 days

Total

2

Last Release

2050d ago

### Community

Maintainers

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

---

Top Contributors

[![ghvietptit](https://avatars.githubusercontent.com/u/17426708?v=4)](https://github.com/ghvietptit "ghvietptit (5 commits)")[![hieunvph04479](https://avatars.githubusercontent.com/u/36782331?v=4)](https://github.com/hieunvph04479 "hieunvph04479 (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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