vultuk/businessbox
最新稳定版本:1.0.8
Composer 安装命令:
composer require vultuk/businessbox
包简介
API Integration with 'Your Business in a Box'
README 文档
README
Integration with Business in a Box API
Implementation
Creating an Encryption object
$encrypt = new Encrypt(
'123456789', // Public Key
'123456789123456789123456789123456789123456789123456789', // Secret Key
)
Creating a client
$client = Client::create([
'title' => 'Mr',
'first_name' => 'Bill',
'surname' => 'Webber',
'house_number' => '123',
'address' => Client::combineAddress('123 Test Road', 'Testville', 'Testerton'),
'postcode' => 'TE5 7ER',
'telephone_no' => '01234567890',
]);
Creating a product
$pensionProduct = Pension::create([
'reference' => '1234567',
'would_you_like_a_review' => 'Yes',
'is_currently_drawing_down' => 'No',
'estimated_pension_value' => 15000,
'provider_name' => 'Some Pension Co',
]);
Creating an appointment
$appointment = Appointment::create([
new Carbon('2015-11-01 09:20'),
'Knock Loudly'
]);
Submitting to the remote API
$result = Remote::request(
$client,
$pensionProduct,
$appointment,
'test-api/echo',
'http://www.myurl.com/',
$encrypt
);
统计信息
- 总下载量: 1.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-07