Use this package to check how much will cost to deliver your package using the Correio's service.
Install it using composer
composer require rhberro\correio-services
$response = Rhberro\Correios\Request::deadlinePrice('13450044', '13466070', '1.2', '16', '21.8', '15.0', '15.0', '40010');
$response = Rhberro\Correios\Request::price('13450044', '13466070', '1.2', '16', '21.8', '15.0', '15.0', '40010');
$response = Rhberro\Correios\Request::deadline('13450044', '13466070', '40010');
$response = Rhberro\Correios\Request::deadline('13450044', '13466070', '40010');
foreach ($response->getServices() as $service) {
$code = $service->Codigo;
$deadline = $service->Valor;
}
The contribution guide is not available for now.
The Correio Services library is open-sourced software licensed under the MIT license.