PHPackages                             rezzza/shorty - 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. rezzza/shorty

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

rezzza/shorty
=============

Underwear for your long urls

v1.3.1(10y ago)1315.3k↓50%2[3 issues](https://github.com/rezzza/Shorty/issues)1MITPHPPHP &gt;=5.3.3

Since Jun 25Pushed 10y ago5 watchersCompare

[ Source](https://github.com/rezzza/Shorty)[ Packagist](https://packagist.org/packages/rezzza/shorty)[ Docs](https://github.com/rezzza/Shorty)[ RSS](/packages/rezzza-shorty/feed)WikiDiscussions master Synced 1mo ago

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

Shorty Documentation
====================

[](#shorty-documentation)

[![https://poser.pugx.org/rezzza/Shorty/version.png](https://camo.githubusercontent.com/530dddaad4d9a4501d2fbe636188ac7a826e4825ab03f277c8c1d5806e3b4fbf/68747470733a2f2f706f7365722e707567782e6f72672f72657a7a7a612f53686f7274792f76657273696f6e2e706e67)](https://packagist.org/packages/rezzza/Shorty)[![https://travis-ci.org/rezzza/Shorty.png?branch=master](https://camo.githubusercontent.com/b196d5976d073c3adab8b7182d0f3f2308640fcfc875392aa8db971bb6340348/68747470733a2f2f7472617669732d63692e6f72672f72657a7a7a612f53686f7274792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Rezzza/Shorty)[![https://insight.sensiolabs.com/projects/92606d9e-f7ee-48a9-adf0-d7d7cd4d8918/mini.png](https://camo.githubusercontent.com/3c935cd654e06738c7070a53d4057de214948553de90858e68ed1561c7176c3c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39323630366439652d663765652d343861392d616466302d6437643763643464383931382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/92606d9e-f7ee-48a9-adf0-d7d7cd4d8918)Underwear for your long urls

Installation
------------

[](#installation)

Use [Composer](https://github.com/composer/composer/) to install: `rezzza/shorty`.

In your composer.json you should have:

```
{
    "require": {
        "rezzza/shorty": "1.0.*"
    }
}
```

### Requirements

[](#requirements)

Shorty requires [Guzzle](https://github.com/guzzle/guzzle).

Usage
-----

[](#usage)

Example with the Google shortener:

```
$googleShortener = new \Rezzza\Shorty\Provider\Google();
$googleShortener->setHttpAdapter(new \Rezzza\Shorty\Http\GuzzleAdapter());
// or
// $googleShortener->setHttpAdapter(new \Rezzza\Shorty\Http\CurlAdapter());
$shortUrl        = $googleShortener->shorten('http://www.verylastroom.com/');
$longUrl         = $googleShortener->expand('http://goo.gl/YY5Tz');
```

Example with the Chain shortener:

```
$chainShortener = new \Rezzza\Shorty\Provider\Chain();
$chainShortener->addProvider($googleShortener); // see example above
$chainShortener->addProvider($bitlyShortener);

$shortUrl       = $chainShortener->shorten('http://www.verylastroom.com/');
$longUrl        = $chainShortener->expand('http://goo.gl/YY5Tz');
```

Unit Tests
----------

[](#unit-tests)

You can run tests with:

```
bin/atoum -d tests/units
```

Release notes
-------------

[](#release-notes)

1.1.0

- Added Chain provider.

1.0.0

- Added Google Url Shortener.
- Added Bitly Url Shortener.
- Added Curl Http adapter.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~196 days

Total

6

Last Release

3802d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47c3006a9e7662031ee9d3fa064238fef88479fd7d60f18dd47f038fbbd7dc5a?d=identicon)[steph\_py](/maintainers/steph_py)

![](https://avatars.githubusercontent.com/u/176363?v=4)[Jérémy Romey](/maintainers/jeremyFreeAgent)[@jeremyFreeAgent](https://github.com/jeremyFreeAgent)

---

Top Contributors

[![stephpy](https://avatars.githubusercontent.com/u/232744?v=4)](https://github.com/stephpy "stephpy (13 commits)")[![jeremyFreeAgent](https://avatars.githubusercontent.com/u/176363?v=4)](https://github.com/jeremyFreeAgent "jeremyFreeAgent (8 commits)")[![shouze](https://avatars.githubusercontent.com/u/54712?v=4)](https://github.com/shouze "shouze (8 commits)")

---

Tags

urlshortener

### Embed Badge

![Health badge](/badges/rezzza-shorty/health.svg)

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)[laracrafts/laravel-url-shortener

Powerful URL shortening tools in Laravel

97110.7k](/packages/laracrafts-laravel-url-shortener)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)

PHPackages © 2026

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