Download the PHP package freshheads/postcode-api-client without Composer
On this page you can find all versions of the php package freshheads/postcode-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freshheads/postcode-api-client
More information about freshheads/postcode-api-client
Files in freshheads/postcode-api-client
Package postcode-api-client
Short Description Client library for the postcodeapi.nu web service.
License MIT
Homepage https://www.postcodeapi.nu
Informations about the package postcode-api-client
FHPostcodeAPIClient
FHPostcodeAPIClient is a PHP client library for the PostcodeAPI.nu web service. This library is developed by Freshheads and will be maintained in sync with the web service itself.
Links:
Installation
FHPostcodeAPIClient can easily be installed using Composer:
Usage
Instantiate the client and replace the API key with your personal credentials:
Within a Symfony project
We recommend to use Guzzle, to be able to use Guzzle in combination with the PostcodeApiClient.
Following definition is used with an implementation of Guzzle 7
.
You should now be able use the FH\PostcodeAPI\Client
service to make requests to the PostcodeAPI.
Guzzle 6
To make use of Guzzle 6
, you should also make use of the
Guzzle6Adapter. By running the following command you automatically install Guzzle as well.
And add the following service definitions (usable in Symfony ^3.4):
All versions of postcode-api-client with dependencies
ext-json Version *
guzzlehttp/psr7 Version ^2.0
psr/http-client Version ^1.0