GithubHelp home page GithubHelp logo

tinkertec / cep-gratis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jansenfelipe/cep-gratis

0.0 1.0 0.0 98 KB

Com esse pacote você poderá realizar consultas de CEP gratuitamente.

Home Page: https://jansenfelipe.github.io/phpgratis/

PHP 17.25% HTML 82.75%

cep-gratis's Introduction

CEP Grátis

Travis StyleCI Latest Stable Version Total Downloads MIT license

Com esse pacote você poderá realizar consultas de CEP gratuitamente.

Para evitar problemas com indisponibilidade de serviços, a consulta é realizada paralelamente em providers diferentes:

A library irá retornar para você a resposta mais rápida, aumentando assim a performance da consulta.

Changelog

  • 4.0.2 - 27/03/2018 Consulta direto na tela de detalhe dos Correios. Obrigado @adrianogl
  • 4.0.0 - 11/03/2017 Consulta em múltiplos providers, interface HttpClient
  • 3.0.1 - 10/03/2016 Tratar cep inexistente. Obrigado @nunesbeto
  • 3.0.0 - 08/03/2016 Up version fabpot/goutte
  • 2.0.4 - 05/03/2016 Ajuste pois o site dos Correios sofreu alteração. Obrigado @devLopez

Como utilizar

Adicione a library

$ composer require jansenfelipe/cep-gratis

Adicione o autoload.php do composer no seu arquivo PHP.

require_once 'vendor/autoload.php';  

Agora basta chamar o método CepGratis::search($cep)

use JansenFelipe\CepGratis\CepGratis;

$address = CepGratis::search('31030080'); 

Gostou? Conheça também

License

The MIT License (MIT)

cep-gratis's People

Contributors

jansenfelipe avatar adrianogl avatar devlopez avatar nunesbeto avatar hevertonfreitas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.