PHP code example of zgetro / php-i-tunes-api

1. Go to this page and download the library: Download zgetro/php-i-tunes-api 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/ */

    

zgetro / php-i-tunes-api example snippets


    $results = iTunes::search('Maroon 5', array(
        'country' => 'NL'
    ))->results;
    

	$albums = iTunes::lookup(909253, 'id', array(
		'entity' => 'album'
	))->results;