eliseuborges/cep-correios

基于邮政数据库的CEP搜索 - 巴西

dev-master 2018-02-19 19:28 UTC

This package is auto-updated.

Last update: 2024-09-06 23:06:51 UTC


README

基于邮政数据库的CEP搜索 - 巴西

Build Status

使用示例

require 'vendor/autoload.php';

error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE);

if ($_POST) {
    try {
        $dados = Eliseuborges\Correios::getEndereco( $_POST["CEP"] );
        var_dump($dados);
    } catch (\Exception $e) {
        echo $e->getMessage();
    }
}
?>

<form name="form" id="form" method="post" action="index.php">
    <input type="text" name="CEP" id="CEP" value="">
    <input type="submit" id="btn" value="buscar">
</form>

贡献

  1. 对项目进行 fork
  2. 创建一个 branch 进行修改 (git checkout -b feature/fooBar)
  3. 进行 commit (git commit -am 'Add some fooBar')
  4. 推送 Push (git push origin feature/fooBar)
  5. 创建新的 Pull Request

许可协议

这个库是一个开源软件,采用MIT许可证。