Skip to content

matthewbdaly/postcode-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcode-client

Build Status

Postcode lookup client. Uses Ideal Postcodes to look up UK postcodes. You will need to obtain an API key in order to use it.

Installation

composer require matthewbdaly/postcode-client

This library uses HTTPlug for making HTTP requests, therefore you will also need to install a client or adapter.

Usage

<?php

require 'vendor/autoload.php';

use Matthewbdaly\Postcode\Client;

$client = new Client();
$response = $client->setKey('<MY_API_KEY>')
    ->get('ID1 1QD');

About

Postcode lookup client

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages