matthewbdaly/postcode-client

A postcode lookup client.

Maintainers

Package info

github.com/matthewbdaly/postcode-client

pkg:composer/matthewbdaly/postcode-client

Statistics

Installs: 54

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

0.0.3 2017-11-28 12:14 UTC

This package is auto-updated.

Last update: 2026-02-28 10:28:20 UTC


README

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');