Download the PHP package vladshut/postcode-api-client without Composer
On this page you can find all versions of the php package vladshut/postcode-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vladshut/postcode-api-client
More information about vladshut/postcode-api-client
Files in vladshut/postcode-api-client
Package postcode-api-client
Short Description Client library for the postcodeapi.nu web service.
License MIT
Homepage http://www.postcodeapi.nu
Informations about the package postcode-api-client
PostcodeAPIClient
PostcodeAPIClient is a PHP client library for the PostcodeAPI.nu web service.
Requirements
PostcodeAPIClient works with PHP 5.5.0 or up. This library depends on the HTTPPlug, see http://docs.php-http.org/en/latest/httplug/introduction.html.
Installation
PostcodeAPIClient can easily be installed using Composer:
Usage
Instantiate the client and replace the API key with your personal credentials:
Note that to be able to run the example above you should have ran the following command, to have Guzzle6 and the Adapter available.
Within Symfony project
We recommend to use Guzzle, to be able to use Guzzle in combination with the PostcodeApiClient you should also make use of the Guzzle6Adapter. By running the following command you automatically install Guzzle aswel.
And add the following service definitions:
You should now be able use the project.client.postal_code
service to make requests to the PostcodeAPI.
All versions of postcode-api-client with dependencies
php-http/httplug Version ^1.1
guzzlehttp/psr7 Version ^1.3
ext-json Version *