New

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

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.
2,719 23
Install
composer require zizaco/cep-consult:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Jun 21, 2022
Links: GitHub  ·  Packagist
Maintainer: Zizaco

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.

Required setup

In the require key of composer.json file add the following

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

Run the Composer update comand

$ composer update

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

'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

'aliases' => array(

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

),

Now you are ready to go:

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

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

Related Packages

jose/test-package-laravel

This package has the objective to consult the CEP within one or more web APIs th...

9 0
cagartner/correios-consulta

Package para pesquisa de serviços de busca por cep, calculo de frete e etc, dire...

304,342 156
otavio-araujo/filament-smart-cep

A FilamentPHP plugin that validates Brazilian postal codes (CEP) and automatical...

3,250 8
renatoneto/laravel4-cep

Consulta de CEP

10 1
jansenfelipe/cep-gratis

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

10,404 65