PHP code example of waynestate / people-api-php
1. Go to this page and download the library: Download waynestate/people-api-php 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/ */
waynestate / people-api-php example snippets
use Waynestate\Api\People;
// People API
$people = new People(PEOPLE_API_KEY);
// List of releases
$releases = $people->request('releases', array('perPage' => '2'));
var_dump($releases);
// Individual Release
$release = $people->request('releases', array('id' => '1'));
var_dump($release);