GithubHelp home page GithubHelp logo

fvtorres / cpf-gratis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jansenfelipe/cpf-gratis

0.0 1.0 0.0 752 KB

Com esse pacote você poderá realizar consultas de CPF no site da Receita Federal do Brasil gratuitamente.

Home Page: http://phpgratis.org

PHP 100.00%

cpf-gratis's Introduction

CPF Grátis

Travis Latest Stable Version Total Downloads Latest Unstable Version MIT license

Com esse pacote você poderá realizar consultas de CPF no site da Receita Federal do Brasil gratuitamente.

Atenção: Esse pacote não possui leitor de captcha, mas captura o mesmo para ser digitado pelo usuário

Changelog

  • 2.0.4 - 07/07/2015 Necessário informar a data de nascimento
  • 2.0.3 - 21/01/2015 Retornar binário de áudio
  • 2.0.2 - 29/12/2014 Remoção do token
  • 2.0.1 - 19/11/2014 Bugfix. Set PHP >=5.4
  • 2.0.0 - 18/11/2014 Alteração do site

Como utilizar

Adicione a library

$ composer require jansenfelipe/cpf-gratis

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

require_once 'vendor/autoload.php';  

Primeiro chame o método getParams() para retornar os dados necessários para enviar no método consulta()

$params = JansenFelipe\CpfGratis\CpfGratis::getParams(); 

Agora basta chamar o método consulta()

$dadosPessoa = JansenFelipe\CpfGratis\CpfGratis::consulta(
    'INFORME_O_CPF',
    'INFORME_A_DATA_DE_NASCIMENTO', //DDMMYYYY
    'INFORME_AS_LETRAS_DO_CAPTCHA',
    $params['cookie']
);

Gostou? Conheça também

License

The MIT License (MIT)

cpf-gratis's People

Contributors

cesaraugusto1994 avatar jansenfelipe avatar marcelosevero avatar

Watchers

 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.