PHPackages                             pixxet/url-shortener - 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. [API Development](/categories/api)
4. /
5. pixxet/url-shortener

ActiveLibrary[API Development](/categories/api)

pixxet/url-shortener
====================

A PHP5 library using API to shorten/expand URL

v2.1.1(8y ago)0131MITPHPPHP ^5.5 || ^7.0

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pixxet/UrlShortener)[ Packagist](https://packagist.org/packages/pixxet/url-shortener)[ Docs](https://github.com/pixxet/UrlShortener)[ RSS](/packages/pixxet-url-shortener/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (8)Used By (0)

URL shortener library
=====================

[](#url-shortener-library)

This library allows you to shorten a URL, reverse is also possible.

[![SensioLabsInsight](https://camo.githubusercontent.com/588373c7e59d36146d9b4f02f2ce7029fd709f094e7270d986d1e647e09ef680/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63346530366339642d353437632d343762622d386162622d6663636336386237646637612f6269672e706e67)](https://insight.sensiolabs.com/projects/c4e06c9d-547c-47bb-8abb-fccc68b7df7a)

[![Build Status](https://camo.githubusercontent.com/47e8cf2af55af942cc099e8a22a1bb0a3bbd4efdf82b01f8a4e7d25a006c185b/68747470733a2f2f6170692e7472617669732d63692e6f72672f7069787865742f55726c53686f7274656e65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/pixxet/UrlShortener)[![Total Downloads](https://camo.githubusercontent.com/01b65a49343c85b6abc9a0345c72b7c77947abf384cb46caaa720a8300b50a0b/68747470733a2f2f706f7365722e707567782e6f72672f7069787865742f75726c2d73686f7274656e65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/pixxet/url-shortener)[![Latest Stable Version](https://camo.githubusercontent.com/b69eb06a710f53df7614566cb80d9efc0a018fed9c30750c6b63bb75c8859180/68747470733a2f2f706f7365722e707567782e6f72672f7069787865742f75726c2d73686f7274656e65722f762f737461626c652e706e67)](https://packagist.org/packages/pixxet/url-shortener)

**Basic Docs**

- [Installation](#installation)
- [Bit.ly API](#bitly-api)
- [Google API](#google-api)
- [Chain providers](#chain-providers)
- [Retrieve link](#retrieve-link)
- [Contribution](#contribution)

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

[](#installation)

Only 1 step:

### Download UrlShortener using composer

[](#download-urlshortener-using-composer)

Add UrlShortener in your composer.json:

```
{
    "require": {
        "pixxet/url-shortener": "dev-master"
    }
}
```

Now tell composer to download the library by running the command:

```
$ php composer.phar update pixxet/url-shortener
```

Composer will install the library to your project's `vendor/pixxet` directory.

Bit.ly API
----------

[](#bitly-api)

### Shorten

[](#shorten)

```
