{"id":18370952,"url":"https://github.com/jansenfelipe/cpf-gratis","last_synced_at":"2025-04-05T03:12:13.802Z","repository":{"id":21930478,"uuid":"25254854","full_name":"jansenfelipe/cpf-gratis","owner":"jansenfelipe","description":"Com esse pacote você poderá realizar consultas de CPF no site da Receita Federal do Brasil gratuitamente.","archived":false,"fork":false,"pushed_at":"2022-09-06T19:53:57.000Z","size":86,"stargazers_count":183,"open_issues_count":11,"forks_count":72,"subscribers_count":32,"default_branch":"3.0","last_synced_at":"2025-03-29T02:08:40.599Z","etag":null,"topics":["consulta-cpf","cpf"],"latest_commit_sha":null,"homepage":"https://jansenfelipe.github.io/phpgratis/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jansenfelipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-15T13:05:35.000Z","updated_at":"2025-03-08T18:45:19.000Z","dependencies_parsed_at":"2022-08-20T02:10:55.651Z","dependency_job_id":null,"html_url":"https://github.com/jansenfelipe/cpf-gratis","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansenfelipe%2Fcpf-gratis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansenfelipe%2Fcpf-gratis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansenfelipe%2Fcpf-gratis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jansenfelipe%2Fcpf-gratis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jansenfelipe","download_url":"https://codeload.github.com/jansenfelipe/cpf-gratis/tar.gz/refs/heads/3.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consulta-cpf","cpf"],"created_at":"2024-11-05T23:42:27.919Z","updated_at":"2025-04-05T03:12:13.784Z","avatar_url":"https://github.com/jansenfelipe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPF Grátis\n[![Travis](https://travis-ci.org/jansenfelipe/cpf-gratis.svg?branch=3.0)](https://travis-ci.org/jansenfelipe/cpf-gratis)\n[![Latest Stable Version](https://poser.pugx.org/jansenfelipe/cpf-gratis/v/stable.svg)](https://packagist.org/packages/jansenfelipe/cpf-gratis) \n[![Total Downloads](https://poser.pugx.org/jansenfelipe/cpf-gratis/downloads.svg)](https://packagist.org/packages/jansenfelipe/cpf-gratis) \n[![Latest Unstable Version](https://poser.pugx.org/jansenfelipe/cpf-gratis/v/unstable.svg)](https://packagist.org/packages/jansenfelipe/cpf-gratis)\n[![MIT license](https://poser.pugx.org/jansenfelipe/nfephp-serialize/license.svg)](http://opensource.org/licenses/MIT)\n\nCom esse pacote você poderá realizar consultas de CPF no site da Receita Federal do Brasil gratuitamente.\n\nAtenção: Esse pacote não possui leitor de captcha, mas captura o mesmo para ser digitado pelo usuário\n\n### Changelog\n\n* 3.0.0 - 30/05/2017 Alteraçao host\n* 2.0.7 - 18/01/2017 Fix alteração do site. [@faelp22](https://github.com/faelp22)\n* 2.0.6 - 18/08/2016 Correção SSL. [@clbonatto](https://github.com/clbonatto) [@JRAVILES](https://github.com/JRAVILES) [@gustavomac89](https://github.com/gustavomac89)\n* 2.0.5 - 23/07/2016 Retornando mais dados. [@marcelosevero](https://github.com/marcelosevero)\n* 2.0.4 - 07/07/2015 Necessário informar a data de nascimento\n* 2.0.3 - 21/01/2015 Retornar binário de áudio\n* 2.0.2 - 29/12/2014 Remoção do token\n* 2.0.1 - 19/11/2014 Bugfix. Set PHP \u003e=5.4\n* 2.0.0 - 18/11/2014 Alteração do site\n\n### Como utilizar\n\nAdicione a library\n\n```sh\n$ composer require jansenfelipe/cpf-gratis\n```\n\nAdicione o autoload.php do composer no seu arquivo PHP.\n\n```php\nrequire_once 'vendor/autoload.php';  \n```\n\nPrimeiro chame o método `getParams()` para retornar os dados necessários para enviar no método `consulta()` \n\n```php\n$params = JansenFelipe\\CpfGratis\\CpfGratis::getParams(); \n```\n\nAgora basta chamar o método `consulta()`\n\n```php\n$dadosPessoa = JansenFelipe\\CpfGratis\\CpfGratis::consulta(\n    'INFORME_O_CPF',\n    'INFORME_A_DATA_DE_NASCIMENTO', //DDMMYYYY\n    'INFORME_AS_LETRAS_DO_CAPTCHA',\n    $params['cookie'],\n    'INFORME_O_TOKEN_DO_CAPTCHA'\n);\n```\n### Gostou? Conheça também\n\n* [CnpjGratis](https://github.com/jansenfelipe/cnpj-gratis)\n* [CepGratis](https://github.com/jansenfelipe/cep-gratis)\n* [CidadesGratis](https://github.com/jansenfelipe/cidades-gratis)\n* [NFePHPSerialize](https://github.com/jansenfelipe/nfephp-serialize)\n\n### License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansenfelipe%2Fcpf-gratis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjansenfelipe%2Fcpf-gratis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjansenfelipe%2Fcpf-gratis/lists"}