Package Data | |
---|---|
Maintainer Username: | cjsjtec |
Maintainer Contact: | cjsj.tec@gmail.com (Cloves) |
Package Create Date: | 2015-11-08 |
Package Last Update: | 2016-09-21 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-09 15:01:11 |
Package Statistics | |
---|---|
Total Downloads: | 9 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
In the require
key of composer.json
file add the following
"cjsjtec/cep-consult": "dev-master"
Run the Composer update comand
$ composer update
In your config/app.php
add 'Jose\CepConsult\ServiceProvider'
to the end of the $providers
array
'providers' => array(
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
...
Jose\CepConsult\ServiceProvider::class,
),
Then at the end of config/app.php
add 'CepConsult' => 'Jose\CepConsult\Facade'
to the $aliases
array
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
...
'CepConsult' => 'Jose\CepConsult\Facade',
),
Now you are ready to go:
// Simply do
CepConsult::getAddress('01009-000');
// Or
CepConsult::getAddress('010090000');