bariew / maven
maven API
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:api
Requires
This package is not auto-updated.
Last update: 2025-09-02 03:23:25 UTC
README
maven API client.
Description
Israeli maven invoice API client
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/maven
or add
"bariew/maven": "dev-master"
to require the section of your composer.json
file.
Usage
$maven = Api::instance($api_key, $contact_email, $contact_phone);
// Create Invoice
$result = $maven->addDocument([
'doc_id' => "123",
'vat_included' => 0, 'discount' => 0, 'discount_type' => 1, //1-percentage, 2-amount
'round_total' => 0, 'withholding_tax' => null, 'send_to_customer' => 1, 'no_vat' => 0,
'english_document' => 0, 'currency' => 1, // 1-shekel, 2-dollar, 3-euro etc
'customer' => ['name' => 'test',],
'items' => [['description' => 'ecommerce invoice', 'price' => 1]],
]);