pond / tunes
Library for querying the Apple iTunes Store
Installs: 2 179
Dependents: 1
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 2
Open Issues: 6
Requires
- php: >=5.3.2
- kriswallsmith/buzz: 0.7
Suggests
- pond/tunes-bundle: Integrate library with Symfony 2 applications
This package is not auto-updated.
Last update: 2024-12-21 14:27:31 UTC
README
PondTunes is a PHP 5.3+ library to query the Apple iTunes Store. It is the successor of https://github.com/daFish/Zend_Service_Itunes.
This library is still under development but feel free to contribute in any way.
Installation:
Add PondTunes to your composer.json
:
{ "require": { "pond/tunes": "*" } }
Use PondTunes?
Basic example of querying the Apple iTunes Store API:
<?php use Pond\Tunes\Search; use Pond\Tunes\Tunes; use HttpAdapter\CurlHttpAdapter; $httpAdapter = new CurlHttpAdapter(); $search = new Search($httpAdapter); $search->setTerms('angry birds') ->setEntity(array(Tunes::MEDIATYPE_SOFTWARE => 'software')); $result = $search->request();
$result contains the result in JSON. You can easily return this result in any AJAX-request.