https://github.com/matthewbdaly/laravel-postcodes
Laravel Postcode lookup integration
https://github.com/matthewbdaly/laravel-postcodes
laravel laravel-postcodes lumen postcode
Last synced: 3 months ago
JSON representation
Laravel Postcode lookup integration
- Host: GitHub
- URL: https://github.com/matthewbdaly/laravel-postcodes
- Owner: matthewbdaly
- License: mit
- Created: 2017-11-28T11:46:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T21:51:43.000Z (over 7 years ago)
- Last Synced: 2024-04-14T04:02:29.368Z (about 1 year ago)
- Topics: laravel, laravel-postcodes, lumen, postcode
- Language: PHP
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-postcodes
Laravel Postcode lookup integration
[](https://travis-ci.org/matthewbdaly/laravel-postcodes)
[](https://coveralls.io/github/matthewbdaly/laravel-postcodes?branch=master)UK postcode lookup service provider for Laravel and Lumen. Uses [Postcode Client](https://github.com/matthewbdaly/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:
```bash
$ composer require matthewbdaly/laravel-postcodes
```Then publish the config file:
```bash
$ php artisan vendor:publish
```And add your API key to the `.env` file:
```bash
IDEAL_POSTCODES_API_KEY=foo
```