bariew/chita

chita API

dev-main 2025-08-29 10:59 UTC

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);