eliseuborges / cep-correios
基于邮政数据库的CEP搜索 - 巴西
dev-master
2018-02-19 19:28 UTC
Requires (Dev)
- phpunit/phpunit: ^5.0
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-09-06 23:06:51 UTC
README
基于邮政数据库的CEP搜索 - 巴西
使用示例
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>
贡献
- 对项目进行 fork
- 创建一个 branch 进行修改 (
git checkout -b feature/fooBar
) - 进行 commit (
git commit -am 'Add some fooBar'
) - 推送 Push (
git push origin feature/fooBar
) - 创建新的 Pull Request
许可协议
这个库是一个开源软件,采用MIT许可证。