PHP code example of timlebrun / itunes-search

1. Go to this page and download the library: Download timlebrun/itunes-search library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

timlebrun / itunes-search example snippets


$options = [
	'cache' => './itunes.json',
	// todo add 'ttl' => 3600,
];
$itunes = Itunes::connect($options);
$itunes->bundle('com.airweb.tixipass');

// Returns an ItunesEntity Object

$itunes->lookup([
	'key' => 'value'
]);

// Returns an ItunesCollection object containing a list of ItunesEntity objects

$itunes->bundle('com.airweb.tixipass');

// Returns an ItunesEntity Object