Skip to content

mazzarito/ZippopotamusClient-PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Zippopotamus PHP Library

A library to abstract the Zippopotamus API, no longer depends on ZendFramework and instead depends on Laminas which is the community supported fork of ZendFramework.

Installation

  1. edit composer.json file with following contents:

    "require": {
       "zippopotamus/zippopotamus": "dev-laminas-migration"
    },
    "repositories": [
        {
          "type": "vcs",
          "url": "https://github.com/mazzarito/ZippopotamusClient-PHP"
        }
    ]
  2. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)

  3. run php composer.phar install

Use

use Zippopotamus\Service\Zippopotamus;

$result = Zippopotamus::code($countryCode, $postalCode);

$result = Zippopotamus::place($countryCode, $state, $city);

$result = Zippopotamus::nearby($countryCode, $postalCode);

About

A library to abstract the Zippopotamus API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%