New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rhberro/correio-services

Check how much will cost to deliver your package using the Correio's service.
298 2
Install
composer require rhberro/correio-services:v1.0.0-beta
Latest Version:v1.0.0-beta
PHP:^7.0
License:MIT
Last Updated:Aug 4, 2017
Links: GitHub  ·  Packagist
Maintainer: rhberro

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.

Related Packages

jansenfelipe/cep-gratis

Com esse pacote você poderá realizar consultas de CEP gratuitamente.

10,430 65
yearnwilling/repository-services

the Repository-Service for laravel 5.5+

18 2
maltex/laravel-service-generators

Provide command line generation of service layer files.

13 4
lsnepomuceno/laravel-brazilian-ceps

A package for querying zip codes for Brazilian addresses.

6,067 31
algo-web/podata-laravel

Expose Odata services from laravel

3,264 32

Version History

Pre-releases (1)
Version Released License
v1.0.0-beta MIT