Download the PHP package pond/tunes-bundle without Composer
On this page you can find all versions of the php package pond/tunes-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pond/tunes-bundle
More information about pond/tunes-bundle
Files in pond/tunes-bundle
Download pond/tunes-bundle
More information about pond/tunes-bundle
Files in pond/tunes-bundle
Please rate this library. Is it a good library?
Informations about the package tunes-bundle
PondTunesBundle
About
The PondTunesBundle allows the integration of PondTunes library.
Installation
Add the dependency for PondTunesBundle to your composer.json
:
"require": {
"pond/tunes-bundle": "*",
}
Activation
Register the bundle in your AppKernel.php
:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Pond\TunesBundle\PondTunesBundle(),
// ...
);
}
Usage
The bundle provides services for search and lookup the Apple iTunes Webservice.
<?php
namespace Acme\DemoBundle\Controller;
use Pond\Tunes\Search;
class ItunesController
{
public function searchAction()
{
$pondSearch = $this->get('pond_tunes.search');
// searches for iPad Apps in germany with 'Angry'
$pondSearch->setEntity(
array(Search::MEDIATYPE_SOFTWARE => 'iPadSoftware')
);
$pondSearch->setCountry('de');
$pondSearch->setTerms('angry');
$pondSearch->setLimit(5);
$pondSearch->setResultFormat(Search::RESULT_ARRAY);
// contains search results
$results = $pondSearch->request();
return array('results' => $results);
}
}
All versions of tunes-bundle with dependencies
PHP Build Version
Package Version
Requires
pond/tunes Version
~0.4
The package pond/tunes-bundle contains the following files
Loading the files please wait ....