PHPackages                             ps-jf/postcode-anywhere - 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. ps-jf/postcode-anywhere

ActiveLibrary[API Development](/categories/api)

ps-jf/postcode-anywhere
=======================

Laravel API wrapper for PCA Predict formerly Postcode Anywhere

0491PHPCI failing

Since May 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ps-jf/postcode-anywhere)[ Packagist](https://packagist.org/packages/ps-jf/postcode-anywhere)[ RSS](/packages/ps-jf-postcode-anywhere/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel API Wrapper for Loqate / PCA Predict (formerly Postcode Anywhere)
=========================================================================

[](#laravel-api-wrapper-for-loqate--pca-predict-formerly-postcode-anywhere)

[![Build Status](https://camo.githubusercontent.com/0bb1ae1d66fa92d3e93b6995ddbdbe574520393814683510022c84e24a8d031a/68747470733a2f2f7472617669732d63692e6f72672f70732d6a662f706f7374636f64652d616e7977686572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ps-jf/postcode-anywhere)

This wrapper simplifies process of making API calls to [**Loqate**](https://www.loqate.com/en-gb/) web services down to a single line of code within your [**Laravel**](http://laravel.com/) application!

Dependency
----------

[](#dependency)

This package requires the [**PHP cURL**](http://php.net/manual/en/curl.installation.php) extension to be installed on your system.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Detailed Example](#example)
- [Support](#support)
- [License](#license)

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

[](#installation)

Pull in the package using Composer

```
composer require ps-jf/postcode-anywhere

```

> **Note**: If you are using Laravel 5.5, the next steps are unnecessary. This package supports Laravel [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

Include the service provider within `config/app.php`.

```
'providers' => [
    ...
    PostcodeAnywhere\PAServiceProvider,
],
```

Include the facade within `config/app.php`.

```
'aliases' => [
    ...
    'PA' => PostcodeAnywhere\PAFacade::class,
]
```

Configuration
-------------

[](#configuration)

This package supports configuration.

You can publish the config file with:

```
php artisan vendor:publish --provider="PostcodeAnywhere\PAServiceProvider" --tag="config"
```

When published, [the `config/postcodeanywhere.php` config file](https://github.com/ps-jf/postcode-anywhere/blob/master/src/config/postcodeanywhere.php) contains:

```
