Download the PHP package devmobgroup/postcodes without Composer
On this page you can find all versions of the php package devmobgroup/postcodes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devmobgroup/postcodes
More information about devmobgroup/postcodes
Files in devmobgroup/postcodes
Package postcodes
Short Description Abstraction layer for fetching Dutch postcode data.
License MIT
Informations about the package postcodes
Postcodes package
This package provides some basic functionality that can be implemented for specific postcode APIs. This package alone does not provide immediate access to postcode data.
Install
-
Install the base package:
-
Choose a postcode provider or create your own. You can find all of our own provider implementations in this repository.
-
PostcodeAPI.nu (recommended) postcodeapi.nu
- API Postcode api-postcode.nl
Read more about using and configuring these providers.
-
Usage
All providers implement the ProviderInterface
which has a lookup method:
This method returns an array of Address
instances. This array should never be empty, because instead the NoSuchCombinationException
exception indicates no
results were found.
There's also a getRaw()
method which usually contains an array of the raw data retrieved from the provider:
Additionally, the lookup()
method throws exceptions that should be caught.
Extending
Read more about creating your own provider.
License
The MIT License (MIT). Please see License File for more information.
All versions of postcodes with dependencies
ext-json Version *
guzzlehttp/guzzle Version ~6.0
psr/http-message Version ^1.0
adbario/php-dot-notation Version ^2.1