2017 © Pedro PelĂĄez
 

library correios

Integration with Correios Webservices

image

mero/correios

Integration with Correios Webservices

  • Sunday, June 4, 2017
  • by merorafael
  • Repository
  • 1 Watchers
  • 2 Stars
  • 342 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

Mero Correios

SensioLabsInsight Build Status Coverage Status Latest Stable Version Total Downloads License, (*1)

Integration with Correios Webservices., (*2)

Requirements

  • PHP 5.4 or above
  • SOAP extension

Instalation with composer

  1. Open your project directory;
  2. Run composer require mero/correios to add Mero Correios in your project vendor.

Client methods

Method Description Parameters Return Exceptions
findAddressByZipCode Find address informations using the zip code. $zipCode Mero\Correios\Model\Address AddressNotFoundException and InvalidZipCodeException

Usage

Declare an instance of object Mero\Correios\Client and use the methods available in the client., (*3)

Example:, (*4)

<?php

$correios = new \Mero\Correios\Client();
$address = $correios->findAddressByZipCode('22640102'); // Return Address object related to '22640-102' zip-code.

echo $address->getAddress(); // Return the address 'Avenida das Américas'
echo $address->getNeighborhood(); // Return the neighborhood 'Barra da Tijuca'
echo $address->getCity(); // Return the city 'Rio de Janeiro'
echo $address->getState(); // Return the state 'RJ'
echo $address->getZipCode(); // Return the address '22640102'

The Versions

04/06 2017

dev-master

9999999-dev https://github.com/merorafael/php-correios

Integration with Correios Webservices

  Sources   Download

MIT

The Requires

  • php >=5.4.9
  • ext-soap *

 

The Development Requires

brazil correios integration mero

04/06 2017

0.1.3

0.1.3.0 https://github.com/merorafael/php-correios

Integration with Correios Webservices

  Sources   Download

MIT

The Requires

  • php >=5.4.9
  • ext-soap *

 

The Development Requires

brazil correios integration mero

03/06 2017

0.1.2

0.1.2.0 https://github.com/merorafael/php-correios

Integration with Correios Webservices

  Sources   Download

MIT

The Requires

 

The Development Requires

brazil correios integration mero

03/06 2017

0.1.1

0.1.1.0 https://github.com/merorafael/php-correios

Integration with Correios Webservices

  Sources   Download

MIT

The Requires

  • php >=5.4.9
  • ext-soap *

 

The Development Requires

brazil correios integration mero

03/06 2017

0.1.0

0.1.0.0 https://github.com/merorafael/php-correios

Integration with Correios Webservices

  Sources   Download

MIT

The Requires

  • php >=5.4.9
  • ext-soap *

 

The Development Requires

brazil correios integration mero