PHPackages                             vinelab/itunes - 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. vinelab/itunes

ActiveLibrary[API Development](/categories/api)

vinelab/itunes
==============

iTunes Store Search API Library

v1.0.4(11y ago)132.6k5[1 issues](https://github.com/Vinelab/iTunes/issues)MITPHPPHP &gt;=5.4.0

Since Sep 19Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Vinelab/iTunes)[ Packagist](https://packagist.org/packages/vinelab/itunes)[ RSS](/packages/vinelab-itunes/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (6)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d700f43b54c62a703d62e81b387eb1b7e296463bce6fe46223086ff5e335e5e6/68747470733a2f2f7472617669732d63692e6f72672f56696e656c61622f6954756e65732e7376673f6272616e63683d302e312e32)](https://travis-ci.org/Vinelab/iTunes)

[![Dependency Status](https://camo.githubusercontent.com/b5bad6db86017969c7c275d592e511f579c426578e62d750b25c804131a66dfb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3533656663393830313362623036356333333030303439612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/53efc98013bb065c3300049a)

[![SensioLabsInsight](https://camo.githubusercontent.com/9a71b196af3287b105e790760b5b69798d86dee97f1c1e884e0d6ad39b224bae/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33333664303539612d653332352d346433382d626634312d3264666537626534356665642f6269672e706e67)](https://insight.sensiolabs.com/projects/336d059a-e325-4d38-bf41-2dfe7be45fed)

iTunes
======

[](#itunes)

A simple yet full-fledged iTunes API client with caching capabilities.

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

[](#installation)

### Composer

[](#composer)

- `"vinelab/itunes": "dev-master"` or refer to [vinelab/itunes on packagist.org](https://packagist.org/packages/vinelab/itunes)

```
// change this to point correctly according
// to your folder structure.
require './vendor/autoload.php';

use Vinelab\ITunes\Agent as iTunes;

$iTunes = new iTunes();

$response = $iTunes->search('Porcupine Tree')); // The original iTunes response

$json = json_encode($response);
```

### Laravel

[](#laravel)

- Edit **app.php** and add `'Vinelab\ITunes\ITunesServiceProvider'` to the `'providers'` array. It will automatically alias itself as `ITunes` which can be used as a Facade class.
- Run `php artisan vendor:publish` to publish the config file.

This library supports Laravel 4 and Laravel 5.x, for installation in L4 use version 1.1.x.

Usage
-----

[](#usage)

### Search

[](#search)

```
