sylapi/courier-gls

v2.0.5 2022-02-07 14:25 UTC

README

Courier library

Installation

Courier to install, simply add it to your composer.json file:

{
    "require": {
        "sylapi/courier-gls": "~1.0"
    }
}

Shipping information:

$courier = new Courier('Gls');

$courier->sandbox(true);
$courier->setLogin('123456');
$courier->setPassword('abc12345def');

$courier->setOptions([
        'weight' => 3.00,
        'width' => 30.00,
        'height' => 50.00,
        'depth' => 10.00,
        'amount' => 2390.10,
        'cod' => true,
        'saturday' => false,
        'custom' => [
            'parcel_cost' => 8,
        ],
        'references' => 'order #4567',
        'note' => 'Note'
    ]);