PHPackages                             hpatoio/bitly-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. hpatoio/bitly-api

Abandoned → [phplicengine/bitly](/?search=phplicengine%2Fbitly)Library[HTTP &amp; Networking](/categories/http)

hpatoio/bitly-api
=================

PHP Library based on Guzzle to consume Bit.ly API | This library is deprecated you might use https://github.com/phplicengine/bitly

2.0.6(6y ago)33388.0k↓35.7%122CC-BY-SA-3.0GherkinCI failing

Since Nov 19Pushed 6y ago3 watchersCompare

[ Source](https://github.com/hpatoio/bitly-api)[ Packagist](https://packagist.org/packages/hpatoio/bitly-api)[ Docs](http://www.iliveinperego.com/)[ RSS](/packages/hpatoio-bitly-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (17)Used By (2)

BitlyApi
========

[](#bitlyapi)

This package is not maintained
------------------------------

[](#this-package-is-not-maintained)

Check [phplicengine/bitly](https://packagist.org/packages/phplicengine/bitly) as a possible replacement.

[![Build Status](https://camo.githubusercontent.com/2139a38ae922626913dbdca7b121c4db91de92aaab1e9614c01cbe6dc038a085/68747470733a2f2f7472617669732d63692e6f72672f687061746f696f2f6269746c792d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hpatoio/bitly-api)[![Total Downloads](https://camo.githubusercontent.com/32069094f9282108be51b234e64aea2999faa71609a29d9195b80c79c406024a/68747470733a2f2f706f7365722e707567782e6f72672f687061746f696f2f6269746c792d6170692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/hpatoio/bitly-api)[![Latest Stable Version](https://camo.githubusercontent.com/07a67e348007a214d79e4e0e438fed90398de174a9bb0ebbc5d044b0a2c36820/68747470733a2f2f706f7365722e707567782e6f72672f687061746f696f2f6269746c792d6170692f762f737461626c652e706e67)](https://packagist.org/packages/hpatoio/bitly-api)[![SensioLabsInsight](https://camo.githubusercontent.com/30b83c2b1d585e71320ad9e21188d0c186fc305562ad0ffb7aa4d7e554ddf941/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38643836316438622d333532392d343933642d623830312d3161313161303938343932652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/8d861d8b-3529-493d-b801-1a11a098492e)

PHP Library based on Guzzle to consume Bit.ly API.

The biggest advantage in using Guzzle is that you can easely attach [Guzzle plugins](http://guzzle.readthedocs.org/en/latest/plugins/plugins-overview.html) to your client. [Here](#attach-guzzle-plugin), for example,you can see how to attach the log plugin and write all your requests to a file.

An [integration](#integrations) with Symfony2 is available as well.

Versions
--------

[](#versions)

- branch `master` follows *psr4* standards and get `2.x` tags
- branch `psr0` follows, of course, *psr0* standards and get `1.x` tags - No new features only bugfix

This project follow [semantic versioning](http://semver.org/).

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

[](#installation)

The recommended way to install this library is through Composer. For information about Composer and how to install in [look here](http://getcomposer.org/doc/00-intro.md).

#### New project

[](#new-project)

From the command line run

```
./composer create-project hpatoio/bitly-api your_prj_dir '~2.0'
```

#### Existing project

[](#existing-project)

Move into your project directory and run

```
./composer require hpatoio/bitly-api '~2.0'
```

or add to your `composer.json`

```
{
    ...
    "require": {
        ...
        "hpatoio/bitly-api": "~2.0"
    }
}
```

and run

```
./composer update
```

Usage
-----

[](#usage)

```
