PHPackages                             tebru/retrofit-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. [API Development](/categories/api)
4. /
5. tebru/retrofit-bundle

ActiveLibrary[API Development](/categories/api)

tebru/retrofit-bundle
=====================

A Symfony2 bundle for the retrofit-php library.

v2.1.0(9y ago)420.6k3[3 PRs](https://github.com/tebru/retrofit-php-bundle/pulls)MITPHP

Since Jan 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tebru/retrofit-php-bundle)[ Packagist](https://packagist.org/packages/tebru/retrofit-bundle)[ RSS](/packages/tebru-retrofit-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

Retrofit PHP Bundle
===================

[](#retrofit-php-bundle)

This Symfony2 bundle aims to provide an easy way to use the [tebru/retrofit-php](https://github.com/tebru/retrofit-php) library. Please review the [documentation](https://github.com/tebru/retrofit-php) for functionality.

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

[](#installation)

```
composer require tebru/retrofit-bundle
```

As Retrofit does not include an http client, install Guzzle.

```
composer require guzzlehttp/guzzle
```

Add a line to your AppKernel.php

```
new Tebru\RetrofitBundle\TebruRetrofitBundle()
```

Usage
-----

[](#usage)

You will need to create providers for each API you want to consume. They should be created with the builder and return a RestAdapter. Here is an example:

```
