matthewbdaly/laravel-postcodes

为 matthewbdaly/postcode-client 提供的 Laravel 和 Lumen 集成,以支持使用 Ideal Postcodes 进行邮编查找

0.0.2 2017-11-30 21:39 UTC

This package is auto-updated.

Last update: 2024-08-28 07:07:41 UTC


README

Laravel 邮编查找集成 构建状态 覆盖率状态

为 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