bariew / chita
chita API
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:api
Requires
- ext-json: *
- ext-simplexml: *
- guzzlehttp/guzzle: *
This package is not auto-updated.
Last update: 2025-08-30 09:18:26 UTC
README
chita API client.
Description
Israeli Chita delivery company API client
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bariew/chita
or add
"bariew/chita": "dev-master"
to require the section of your composer.json
file.
Usage
$chita = Api::instance($number, $token);
// Create Shipment
$shipment = Shipment::fromArray([
'type' => "איסוף",
'code' => 140
//... etc
]);
$result = $chita->create($shipment->toApiData());
// get shipment label pdf to print
file_put_contents('/my/file/path.pdf', $chita>label(123456));
// cancel shipment
$result = $chita->cancel(56789);