PHPackages                             sudo/post - 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/post

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

sudo/post
=========

Post Sudo package

1.0.1(5y ago)0271MITPHP

Since Apr 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Sudo-E-Commerce/posts)[ Packagist](https://packagist.org/packages/sudo/post)[ RSS](/packages/sudo-post/feed)WikiDiscussions master Synced today

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

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

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

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

Mặc định package sẽ tạo ra giao diện quản lý cho toàn bộ bài viết và danh mục bài viết được đặt tại `/{admin_dir}/posts` và `/{admin_dir}/post_categories`, 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/post`
- Package cũng cần package `sudo/tag` để có thể hoạt động, require theo câu lệnh `composer require sudo/tag`
- Chạy `php artisan migrate` để tạo các bảng phục vụ cho package

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

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

```
[
	'type' 				=> 'multiple',
	'name' 				=> 'Bài viết',
	'icon' 				=> 'fas fa-file-alt',
	'childs' => [
		[
			'name' 		=> 'Thêm mới',
			'route' 	=> 'admin.posts.create',
			'role' 		=> 'posts_create'
		],
		[
			'name' 		=> 'Danh sách',
			'route' 	=> 'admin.posts.index',
			'role' 		=> 'posts_index',
			'active' 	=> [ 'admin.posts.show', 'admin.posts.edit' ]
		],
		[
			'name' 		=> 'Danh mục',
			'route' 	=> 'admin.post_categories.index',
			'role' 		=> 'post_categories_index',
			'active' 	=> [ 'admin.post_categories.create', 'admin.post_categories.show', 'admin.post_categories.edit' ]
		]
	]
],

```

- 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)

```
'posts' => [
	'name' 			=> 'Bài viết',
	'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' ],
	],
],
'post_categories' => [
	'name' 			=> 'Danh mục bài viết',
	'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')`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~29 days

Total

3

Last Release

2095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66982116?v=4)[Sudo E-Commerce Developers](/maintainers/sudoedev)[@sudoedev](https://github.com/sudoedev)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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