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

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

rezzza/shorty-bundle
====================

Underwear for your long urls in Symfony

v1.2.1(10y ago)813.4k↓50%3MITPHPPHP &gt;=5.3.3

Since Jun 25Pushed 10y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

ShortyBundle
============

[](#shortybundle)

[![https://poser.pugx.org/rezzza/shorty-bundle/version.png](https://camo.githubusercontent.com/2f16366ed2c240ba98addfead19ad30c8f3278a4f32cac3b2f9bcb0d8d73c914/68747470733a2f2f706f7365722e707567782e6f72672f72657a7a7a612f73686f7274792d62756e646c652f76657273696f6e2e706e67)](https://packagist.org/packages/rezzza/shorty-bundle)[![https://travis-ci.org/rezzza/ShortyBundle.png?branch=master](https://camo.githubusercontent.com/e6b6ddf548f5984ab8fc8c2d3a15fddb9883fea3938457ddb5d7504b55b3615e/68747470733a2f2f7472617669732d63692e6f72672f72657a7a7a612f53686f72747942756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/rezzza/ShortyBundle)Underwear for your long urls in Symfony.

Integration of [Shorty](https://github.com/rezzza/Shorty) library.

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

[](#installation)

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

In your `composer.json` you should have:

```
{
    "require": {
        "rezzza/shorty-bundle": "2.0.*"
    }
}
```

Then update your `AppKernel.php` to register the bundle with:

```
new Rezzza\ShortyBundle\RezzzaShortyBundle()
```

Configuration
-------------

[](#configuration)

```
rezzza_shorty:
    default_provider: google
    providers:
        google:
            id: google
            key: ~
            http_adapter: ~ # default is Rezzza\Shorty\Http\CurlAdapter
        google2:
            id: google
            key: anotherkey
        bitly:
            id: bitly
            access_token: ~ #required
            http_adapter: ~ # default is Rezzza\Shorty\Http\CurlAdapter
        custom:
            id: my_custom_service
        chain:
            id: chain
            providers: [google, bitly, custom, google2]
```

Basic usage
-----------

[](#basic-usage)

```
$shorty = $this->container->get('rezzza.shorty.google');
// or
$shorty = $this->container->get('rezzza.shorty'); // will use default_provider.
try {
    $short  = $shorty->shorten('http://www.verylastroom.net');
    $long   = $shorty->expand($long);
} catch (\Rezzza\Shorty\Exception\Exception $e) {
    // oops ...
}
```

Exceptions
----------

[](#exceptions)

[Exceptions](https://github.com/rezzza/Shorty/tree/master/src/Rezzza/Shorty/Exception) directory.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~301 days

Total

4

Last Release

3804d 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 (11 commits)")[![shouze](https://avatars.githubusercontent.com/u/54712?v=4)](https://github.com/shouze "shouze (3 commits)")[![daifma](https://avatars.githubusercontent.com/u/4672529?v=4)](https://github.com/daifma "daifma (2 commits)")[![jeremyFreeAgent](https://avatars.githubusercontent.com/u/176363?v=4)](https://github.com/jeremyFreeAgent "jeremyFreeAgent (2 commits)")

---

Tags

urlsymfonybundleshortenershorty

### Embed Badge

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

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

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[fsi/datagrid-bundle

FSi Datagrid Bundle

1859.8k1](/packages/fsi-datagrid-bundle)[glooby/task-bundle

Scheduling of tasks for symfony made simple

3216.3k](/packages/glooby-task-bundle)

PHPackages © 2026

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