matthewbdaly / laravel-postcodes
A Laravel and Lumen integration for matthewbdaly/postcode-client to enable postcode lookups with Ideal Postcodes
0.0.2
2017-11-30 21:39 UTC
Requires
- matthewbdaly/postcode-client: ^0.0.3
- php-http/guzzle6-adapter: ^1.1
- php-http/message: ^1.6
Requires (Dev)
- mockery/mockery: ^0.9.9
- orchestra/testbench: 3.5
- phpunit/phpunit: ^6.3
- psy/psysh: ^0.8.11
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2024-10-28 07:32:57 UTC
README
Laravel Postcode lookup integration
UK postcode lookup service provider for Laravel and Lumen. Uses Postcode Client to enable lookups using Ideal Postcodes.
Note that this service provider caches lookups indefinitely, since they don't change too often, but you may want to clear the cache from time to time. To do this, flush the postcodes
tag.
Installation for Laravel
This package is only intended for Laravel 5.5 and up. Install it with the following command:
$ composer require matthewbdaly/laravel-postcodes
Then publish the config file:
$ php artisan vendor:publish
And add your API key to the .env
file:
IDEAL_POSTCODES_API_KEY=foo