PHPackages                             xiaodi/think-short-url - 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. xiaodi/think-short-url

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

xiaodi/think-short-url
======================

ThinkPHP ShortUrl Component

v1.0.0(6y ago)37MITPHPCI failing

Since Nov 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xiaodit/think-short-url)[ Packagist](https://packagist.org/packages/xiaodi/think-short-url)[ RSS](/packages/xiaodi-think-short-url/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

think-short-url
===============

[](#think-short-url)

[![Build Status](https://camo.githubusercontent.com/0e4325dbceb8c927736470ca1870a0c08bd944351326dfb5eae04d0fbd95c93e/68747470733a2f2f7472617669732d63692e636f6d2f7869616f6469742f7468696e6b2d73686f72742d75726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/xiaodit/think-short-url)

### ThinkPHP 短地址生成 扩展包

[](#thinkphp-短地址生成-扩展包)

### 安装

[](#安装)

```
$ composer require xiaodi/think-short-url:dev-master

```

### 百度

[](#百度)

#### 创建

[](#创建)

```
use ShortUrl\Facade\ShortUrl;

ShortUrl::make('baidu')->create('https://www.baidu.com');
```

#### 还原

[](#还原)

```
use ShortUrl\Facade\ShortUrl;

ShortUrl::make('baidu')->query('https://dwz.cn/JCRnHXWE');
```

#### 删除

[](#删除)

```
use ShortUrl\Facade\ShortUrl;

ShortUrl::make('baidu')->delete('JCRnHXWE');
```

### 新浪

[](#新浪)

#### 创建

[](#创建-1)

```
use ShortUrl\Facade\ShortUrl;

ShortUrl::make('sina')->create('https://www.baidu.com');
```

### 快捷助手

[](#快捷助手)

```
// 生成百度短链
shorturl_baidu($url);

// 生成新浪短链
shorturl_sina($url);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2423d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81fb8c1760e123896567a7795983521f3f6c46a2c041613a176f83603e5e52e9?d=identicon)[xiaodi](/maintainers/xiaodi)

---

Top Contributors

[![edenleung](https://avatars.githubusercontent.com/u/31346973?v=4)](https://github.com/edenleung "edenleung (3 commits)")

---

Tags

thinkphpthinkphp-componentphpthinkphpthinkphp-component

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/xiaodi-think-short-url/health.svg)

```
[![Health](https://phpackages.com/badges/xiaodi-think-short-url/health.svg)](https://phpackages.com/packages/xiaodi-think-short-url)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k18.5M67](/packages/spatie-crawler)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)

PHPackages © 2026

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