A library to abstract the Zippopotamus API
-
edit
composer.json
file with following contents:"require": { "zippopotamus/zippopotamus": "dev-master" }
-
install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install
use Zippopotamus\Service\Zippopotamus;
$result = Zippopotamus::code($countryCode, $postalCode);
$result = Zippopotamus::place($countryCode, $state, $city);
$result = Zippopotamus::nearby($countryCode, $postalCode);