PHPackages                             sudo/sync-links - 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/sync-links

ActiveLibrary

sudo/sync-links
===============

Sync Link Sudo package

2.2.5(5y ago)0917↓50%MITPHP

Since May 29Pushed 5y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (12)Used By (0)

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

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

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

Mặc định package sẽ tạo ra giao diện quản lý cho toàn bộ Link đồng bộ được đặt tại `/{admin_dir}/sync_links`, 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/sync-links`
- 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' 		=> 'single',
	'name' 		=> 'Link đồng bộ',
	'icon' 		=> 'fas fa-link',
	'route' 	=> 'admin.sync_links.index',
	'role'		=> 'sync_links_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)

```
'sync_links' => [
	'name' 			=> 'Link đồng bộ',
	'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')`

### Sử dụng

[](#sử-dụng)

Tính năng này dùng điều hướng link cũ sang link mới với các dạng điều hướng 301 và 302 phục vụ cho SEO.

Nhúng đoạn mã dưới đây tại hàm `render` của `app/Exceptions/Handler.php` để thực hiện Check và điều hướng

```
$check_syncs = \DB::table('sync_links')->where('old', $_SERVER['REQUEST_URI'])->where('status', 1)->first();
if(!empty($check_syncs) && !empty($check_syncs->new)){
    return redirect($check_syncs->new ?? '/', $check_syncs->redirect);
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~23 days

Total

11

Last Release

2050d ago

Major Versions

1.0.x-dev → 2.0.32020-05-29

### 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 (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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