PHPackages                             ozcat/url-box - 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. ozcat/url-box

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

ozcat/url-box
=============

php url shorten

361PHP

Since Oct 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/OzCat/url-box)[ Packagist](https://packagist.org/packages/ozcat/url-box)[ RSS](/packages/ozcat-url-box/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Url-box
=======

[](#url-box)

URL Shorten bundle for PHP

How To Use/Demo
---------------

[](#how-to-usedemo)

### Install

[](#install)

Install with Composer

```
composer require ozcat/url-box

```

### dwz.cn

[](#dwzcn)

```
$demo = new OzCat\Urlbox\Dwzcn();
$url = "http://url.com";
$bk = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

```

\###is.gd

```
$demo = new OzCat\Urlbox\Isgd();
$url = "http://url.com";
$bk  = $demo->srt($url);
echo $bk;

```

\###bit.ly You can get your own token at [bitly](http://dev.bitly.com/my_apps.html).

```
$demo = new OzCat\Urlbox\Bitly($key);
$url = "http://url.com";
$bk  = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

```

\###t.cn

please edit the appkey in file class/tcn.class.php before using. You can get your own appkey at [sina](http://open.weibo.com).

```
include_once '../class/tcn.class.php';
$demo = new tcn($key);
$url = "http://url.com";
$bk  = $demo->srt($url);
//Restore a url
$long = $demo->expand($bk);
echo $bk;

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/28576f8bc727ae2bb4adc086208b17a2a910c2917f874f9f0848d97b88ead248?d=identicon)[orvice](/maintainers/orvice)

---

Top Contributors

[![orvice](https://avatars.githubusercontent.com/u/1532235?v=4)](https://github.com/orvice "orvice (41 commits)")

### Embed Badge

![Health badge](/badges/ozcat-url-box/health.svg)

```
[![Health](https://phpackages.com/badges/ozcat-url-box/health.svg)](https://phpackages.com/packages/ozcat-url-box)
```

###  Alternatives

[gladcodes/keygen

A fluent PHP random key generator.

123804.0k2](/packages/gladcodes-keygen)[cayetanosoriano/hashids-bundle

Bundle for integration of hashids lib to the container

22168.0k](/packages/cayetanosoriano-hashids-bundle)

PHPackages © 2026

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