rest-full / correios

An easy way to interact with the main features of Correios.
Other
0 stars 0 forks source link

Correios

About Correios

An easy way to interact with the main features of Correios.

Installation

Usage

Search for zip code the Correios.

<?php

require_once __DIR__ . '../vendor/autoload.php';

use Restfull\Correios\Client;

$correios = new Client();
echo $correios->zipcode('20520-054');

calculate the shipping of the order

<?php

require_once __DIR__ . '../vendor/autoload.php';

use Restfull\Correios\Client;

$correios = new Client;
$correios->multiZipCode(['21050-560', '21520-001'])->freight(['PAC'], [
    'width' => 16.4, 'height' => 15.9, 'length' => 17.8, 'weight' => 53.1,
    'quantity' => 1
]);

Licença

The Correios is open-sourced software licensed under theMIT license .