2017 © Pedro PelĂĄez
 

library cep-consult

This package has the objective to consult the CEP within one or more web APIs that will retrieve the address of the given number.

image

zizaco/cep-consult

This package has the objective to consult the CEP within one or more web APIs that will retrieve the address of the given number.

  • Wednesday, July 24, 2013
  • by Zizaco
  • Repository
  • 1 Watchers
  • 21 Stars
  • 2,138 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 44 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CepConsult (Laravel4 Package)


This package has the objective to consult the CEP within one or more web APIs that will retrieve the address of the given number. Esse pacote tem o objetivo de consultar o numero CEP em uma ou mais APIs web que irão retornar o endereço do numero dado., (*1)

Required setup

In the require key of composer.json file add the following, (*2)

"zizaco/cep-consult": "dev-master"

Run the Composer update comand, (*3)

$ composer update

In your config/app.php add 'Zizaco\CepConsult\ServiceProvider' to the end of the $providers array, (*4)

'providers' => array(

    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    ...
    'Zizaco\CepConsult\ServiceProvider',

),

Then at the end of config/app.php add 'CepConsult' => 'Zizaco\CepConsult\Facade' to the $aliases array, (*5)

'aliases' => array(

    'App'        => 'Illuminate\Support\Facades\App',
    'Artisan'    => 'Illuminate\Support\Facades\Artisan',
    ...
    'CepConsult'    => 'Zizaco\CepConsult\Facade',

),

Now you are ready to go:, (*6)

// Simply do
CepConsult::getAddress('13.015-904');

// Or
CepConsult::getAddress('13015904');

The Versions

24/07 2013

dev-master

9999999-dev

This package has the objective to consult the CEP within one or more web APIs that will retrieve the address of the given number.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel brazil cep