PHPackages                             merlindiavova/postcodesio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. merlindiavova/postcodesio

ActiveLibrary[API Development](/categories/api)

merlindiavova/postcodesio
=========================

Postcodes.IO API

0.1.0(6y ago)03MITPHPPHP ~7.2CI failing

Since Jun 20Pushed 6y agoCompare

[ Source](https://github.com/merlindiavova/postcodesio)[ Packagist](https://packagist.org/packages/merlindiavova/postcodesio)[ RSS](/packages/merlindiavova-postcodesio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

Postcodes.io API
================

[](#postcodesio-api)

[![Build Status](https://camo.githubusercontent.com/e5819651ee0a74250132327adb65fc9383932cfca650b0f391392f1c48a8f01a/68747470733a2f2f7472617669732d63692e6f72672f6d65726c696e646961766f76612f706f7374636f646573696f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/merlindiavova/postcodesio) [![Build Status](https://camo.githubusercontent.com/8b06f70f783d4235f5f782b66e45f79d5c3575028d71fb3e1194153388be25a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65726c696e646961766f76612f706f7374636f646573696f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/merlindiavova/postcodesio/build-status/master) [![Latest Stable Version](https://camo.githubusercontent.com/fffed7fb5445bcd49ab8fb132d92c772d297156b677b5f1573beb4afb507ab9f/68747470733a2f2f706f7365722e707567782e6f72672f6d65726c696e646961766f76612f706f7374636f646573696f2f76657273696f6e)](https://packagist.org/packages/merlindiavova/postcodesio) [![License](https://camo.githubusercontent.com/2e3b171fc2537ade64807676dc1fa5d5e823ea8963ee9ccafc56988c0546b962/68747470733a2f2f706f7365722e707567782e6f72672f6d65726c696e646961766f76612f706f7374636f646573696f2f6c6963656e7365)](https://packagist.org/packages/merlindiavova/postcodesio)

PHP client to consume the [Postcodes.io](https://postcodes.io/) API.

Installation
------------

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install this library. Current supported PHP versions are 7.1-7.3.

To install this libary please run the following command:

```
$ composer require merlindiavova/postcodesio
```

Example
-------

[](#example)

The example below uses [sunrise/http-client-curl](https://github.com/sunrise-php/http-client-curl) as the [PSR-18](https://www.php-fig.org/psr/psr-18/) implementation and [Nyholm/psr7](https://github.com/Nyholm/psr7) as the [PSR-7](https://www.php-fig.org/psr/psr-7/) implementation.

```
