Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-06-27 (1 year ago) | Not enough user ratings | Total: 234 This week: 1 | All time: 7,535 This week: 1,047 |
Version | License | PHP version | Categories | |||
busca-cep 0.1.3 | MIT/X Consortium ... | 5.4 | PHP 5, Web services, Geography |
Description | Author | |||||||||||||
This package is specific mainly for applications used in Brazil .
This class can get the address of a given CEP zip code in Brazil. |
|
Classe que pesquisa CEP no site dos Correios e retorna o endereço completo se encontrar.
O retorno é feito em JSON, assim:
{
"Logradouro" : "Avenida, Rua, Praça, etc",
"Bairro" : "Bairro",
"Cep" : "12345678",
"Cidade" : "Cidade",
"UF" : "UF"
}
composer require "brunowerneck/buscacep"
Ou edite seu composer.json e adicione
require : {
"brunowerneck/buscacep" : "dev-master"
}
Para executar o sistema, basta chamar a classe:
> use BVW\Correios\BuscaCEP; > > $correios = new BuscaCEP(); > > $correios->busca($cep);
Você pode pesquisar o CEP nos formatos 00000-000 ou 00000000
Files |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | Auxiliary data | ||
README.md | Doc. | Documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.