rhberro / correio-services by rhberro

Check how much will cost to deliver your package using the Correio's service.
298
2
3
Package Data
Maintainer Username: rhberro
Maintainer Contact: rhberro@gmail.com (Rafael Henrique Berro)
Package Create Date: 2016-06-28
Package Last Update: 2017-08-04
Language: PHP
License: MIT
Last Refreshed: 2024-12-23 03:09:32
Package Statistics
Total Downloads: 298
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Correio Services

Build Status

Use this package to check how much will cost to deliver your package using the Correio's service.



Installing

Install it using composer

composer require rhberro\correio-services

Getting Started

Price and Deadline

$response = Rhberro\Correios\Request::deadlinePrice('13450044', '13466070', '1.2', '16', '21.8', '15.0', '15.0', '40010');

Price

$response = Rhberro\Correios\Request::price('13450044', '13466070', '1.2', '16', '21.8', '15.0', '15.0', '40010');

Deadline

$response = Rhberro\Correios\Request::deadline('13450044', '13466070', '40010');

Response

$response = Rhberro\Correios\Request::deadline('13450044', '13466070', '40010');

foreach ($response->getServices() as $service) {
    $code = $service->Codigo;
    $deadline = $service->Valor;
}

Contributing

The contribution guide is not available for now.

License

The Correio Services library is open-sourced software licensed under the MIT license.