| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 254 | All time:  7,873 This week: 455  | ||||
| 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 (4) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  src (1 directory) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| 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.
 If you know an application of this package, send a message to the author to add a link here.