Petfinder is a project mainly written in PHP, based on the MIT license.
PHP Client Library for Petfinder.com API
Petfinder is an online, searchable database of animals who need homes. This PHP Client Library helps developers build applications using the Petfinder.com API.
Get a random pet's basic info
// Set $apiKey to your API key string.
// Both XML and JSON responses are available
include('Petfinder.php');
$pf = new Petfinder(PETFINDER_API_KEY);
$pf->setResponseFormat('json');
$petJson = $pf->pet_getRandom(array('output'=>'basic'));
$pet = json_decode($petJson, TRUE);
print_r($pet);