Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/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.
https://github.com/zizaco/cep-consult
Last synced: 27 minutes ago
JSON representation
This package has the objective to consult the CEP within one or more web APIs that will retrieve the address of the given number.
- Host: GitHub
- URL: https://github.com/zizaco/cep-consult
- Owner: Zizaco
- Created: 2013-07-24T03:33:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T13:58:12.000Z (over 2 years ago)
- Last Synced: 2024-11-09T02:04:18.599Z (7 days ago)
- Language: PHP
- Size: 37.1 KB
- Stars: 22
- Watchers: 3
- Forks: 75
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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');