2017 © Pedro PelĂĄez
 

symfony-bundle tunes-bundle

PondTunesBundle

image

pond/tunes-bundle

PondTunesBundle

  • Sunday, August 18, 2013
  • by daFish
  • Repository
  • 1 Watchers
  • 2 Stars
  • 226 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PondTunesBundle

About

The PondTunesBundle allows the integration of PondTunes library., (*1)

Installation

Add the dependency for PondTunesBundle to your composer.json:, (*2)

"require": {
    "pond/tunes-bundle": "*",
}

Activation

Register the bundle in your AppKernel.php:, (*3)

// 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., (*4)

<?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);
    }
}

The Versions

18/08 2013

dev-master

9999999-dev

PondTunesBundle

  Sources   Download

MIT

The Requires

 

by Marcus Stöhr

search webservice itunes

02/04 2013

v0.4.1

0.4.1.0

PondTunesBundle

  Sources   Download

MIT

The Requires

 

by Marcus Stöhr

search webservice itunes

02/04 2013

v0.3.2

0.3.2.0

PondTunesBundle

  Sources   Download

MIT

The Requires

 

by Marcus Stöhr

search webservice itunes