matthewbdaly / laravel-postcodes
为 matthewbdaly/postcode-client 提供的 Laravel 和 Lumen 集成,以支持使用 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-08-28 07:07:41 UTC
README
为 Laravel 和 Lumen 提供的 UK 邮编查找服务提供商。使用 Postcode Client 来实现使用 Ideal Postcodes 的查找。
请注意,此服务提供商无限期缓存查找结果,因为这些结果变化不频繁,但您可能需要不时清理缓存。为此,请清除 postcodes
标签。
Laravel 安装
此包仅适用于 Laravel 5.5 及以上版本。使用以下命令安装:
$ composer require matthewbdaly/laravel-postcodes
然后发布配置文件
$ php artisan vendor:publish
并将您的 API 密钥添加到 .env
文件中
IDEAL_POSTCODES_API_KEY=foo