bariew/rivhit
最新稳定版本:1.0
Composer 安装命令:
composer require bariew/rivhit
包简介
rivhit API
README 文档
README
rivhit API client.
Description
Israeli rivhit invoice API client
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/rivhit
or add
"bariew/rivhit": "dev-master"
to require the section of your composer.json file.
Usage
$rivhit = Api::instance($api_token);
// Create Customer
$result = $rivhit->customerNew('my last name', [
'first_name' => 'myname', 'email' => 'my@email.com', 'address' => 'my address', 'phone' => 123123,
]);
// Create Invoice
$result = $rivhit->documentNew(['order' => 123, 'comments' => '', 'price_include_vat' => true, 'email_to' => 'my@email.com', 'email_bcc' => 'my2@email.com',
'digital_signature' => true, 'send_mail' => true, 'items' => [[
'catalog_number' => 123, 'quantity' => 1, 'description' => '', 'price_nis' => 10,
'shipping' => ['description' => 'משלוח', 'price_nis' => 10, 'quantity' => 1],
'discount' => ['description' => '', 'price_nis' => -2, 'quantity' => 1]
]]]);
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-09-01