mralston/mug
最新稳定版本:v1.0.2
Composer 安装命令:
composer require mralston/mug
包简介
Library for working with My Utility Genius API.
关键字:
README 文档
README
Introduction
Library for working with My Utility Genius API.
Config
You may publish the config file as follows:
php artisan vendor:publish --tag=mug-config
Add the following items to your .env file:
MUG_ENDPOINT="${APP_ENV}" MUG_CLIENT_ID= MUG_SECRET=
My Utility Genius will supply a Client ID and Secret.
Usage
Here are how the basic functions of the library work:
// Determine whether a post code is ready to switch Mug::addressPostcodeReady($this->postCode); // Retrieve addresses matched by a post code Mug::addressRecco($this->postCode); // Retrieve details about a specific address Mug::addressReccoDetails($address); // $address attribute is an array which must contain // mpancore and xoserveAddressCode elements. // You may supply an entry from the collection // returned by Mug::addressRecco() Mug::addressReccoDetails( Mug::addressRecco($this->postCode) ->first() );
Security Vulnerabilities
Please e-mail security vulnerabilities directly to me.
Licence
PDF is open-sourced software licenced under the MIT license.
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-26