PHP code example of blitzr / php-client

1. Go to this page and download the library: Download blitzr/php-client 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/ */

    

blitzr / php-client example snippets


// quire 'vendor/autoload.php';

// use the Blitzr client
use Blitzr\BlitzrClient;

// create an instance of Blitzr client
$blitzr = new BlitzrClient('your-api-key');

// request an artist
$artist = $blitzr->getArtist('year-of-no-light');
bash
$ composer