PHPackages                             chowjiawei/short-link - 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. chowjiawei/short-link

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

chowjiawei/short-link
=====================

Tool for changing long links into short links.

v0.0.1(4y ago)11141MITPHPPHP ^7.0|^8.0

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chowjiawei/short-link)[ Packagist](https://packagist.org/packages/chowjiawei/short-link)[ Docs](https://github.com/chowjiawei/short-link)[ RSS](/packages/chowjiawei-short-link/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

short-link
==========

[](#short-link)

Tool for changing long links into short links.

长链接生成短链接 实现 短链跳转

#### 安装

[](#安装)

- 发布配置文件 `php artisan vendor:publish --provider="Chowjiawei\ShortLink\Providers\ShortLinkServiceProvider"`
- 执行迁移命令 `php artisan migrate`

#### 使用

[](#使用)

- 引入服务(以下功能均需引入)

```
$shortLinkService=new \Chowjiawei\ShortLink\Services\ShortLinkService();
```

- 系统自生成 新的短链接 支持：`mix`混合 `number`纯数字 `minLetter`纯小写字母 `maxLetter`纯大写字母

```
$shortLinkService->short('apple122','maxLetter');
```

- 自定义新链接（短链接）

```
$shortLinkService->customShort('apple1111','apple123');
```

- 删除关系链接（使用旧链接【长连接】进行删除）

```
$shortLinkService->deleteOldUrl('apple122');
```

- 删除关系链接（使用新链接【短连接】进行删除） 这会删除全部相关的新链接

```
$shortLinkService->deleteNewUrl('apple122');
```

- 使用跳转 建议放入Laravel(app\\Http\\Controller.php 的fallback方法内) ，路由（`Route::fallback('Controller@fallback');`）

```
$shortLinkService=new \Chowjiawei\ShortLink\Services\ShortLinkService();
return  $shortLinkService->redirect();
```

### 配置修改

[](#配置修改)

`config`文件夹内的`short-link`配置

#### 临时关闭服务跳转

[](#临时关闭服务跳转)

`enabled` 为false即可暂停

### 禁用前缀

[](#禁用前缀)

`forbid_prefix` 可配置不可解析的前缀url

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a50fed69c81f935cf69e064aca0aa78febeec0a6415bccd0efcd17d79c49af04?d=identicon)[zhoujiawei](/maintainers/zhoujiawei)

---

Top Contributors

[![chowjiawei](https://avatars.githubusercontent.com/u/59349609?v=4)](https://github.com/chowjiawei "chowjiawei (11 commits)")

---

Tags

pluginlaravellink

### Embed Badge

![Health badge](/badges/chowjiawei-short-link/health.svg)

```
[![Health](https://phpackages.com/badges/chowjiawei-short-link/health.svg)](https://phpackages.com/packages/chowjiawei-short-link)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

8015.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k30](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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