Package Data | |
---|---|
Maintainer Username: | squigg |
Maintainer Contact: | github@squigg.co.uk (Squigg) |
Package Create Date: | 2017-01-24 |
Package Last Update: | 2017-01-28 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:09:38 |
Package Statistics | |
---|---|
Total Downloads: | 268 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
PHP Laravel 5 package for the Ideal Postcodes API.
You can find this library on Packagist.
To install ideal-postcodes-laravel with Composer, run the following command:
$ composer require squigg/ideal-postcodes-laravel
The package publishes a configuration file to your config directory where you can update the configuration for your app.
$ php artisan vendor:publish --tag=config
Add the IdealPostcodesServiceProvider and (if desired) the Facade alias to your app.php
:
'providers' => [
...
'Squigg\IdealPostcodes\IdealPostcodesServiceProvider',
],
'aliases' => [
...
'IdealPostcodes' => 'Squigg\IdealPostcodes\Facades\IdealPostcodesFacade',
],
Add an IDEALPOSTCODES_API_KEY
to your .env
file with your Ideal Postcodes API key
IDEALPOSTCODES_API_KEY=ak_abcdefghijklmnopqrstuvwxyz
All available settings are documented within the config/ideal-postcodes.php configuration file.
Simply call the \IdealPostcodes
Facade, or add a dependency in any constructor to IdealPostcodes
Copyright © 2016 Steve Strugnell. Released under the MIT License <docs/license.rst>
_.