sylapi / courier-gls
Courier
Installs: 9 347
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.4.0
- rakit/validation: ^1.4
- sylapi/courier: ^2.0
Requires (Dev)
- phpstan/phpstan: ^0.12.77
- phpunit/phpunit: ^9.5
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' ]);