PHPackages                             luquinhasbrito/cpf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luquinhasbrito/cpf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luquinhasbrito/cpf
==================

Com esse pacote você poderá consultar, gratuitamente, CPFs diretamente no site da receita.

07PHP

Since Aug 20Pushed 8y agoCompare

[ Source](https://github.com/luquinhasbrito/CPF)[ Packagist](https://packagist.org/packages/luquinhasbrito/cpf)[ RSS](/packages/luquinhasbrito-cpf/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CPF
===

[](#cpf)

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

[](#changelog)

- 3.0.0 - 30/05/2017 Alteraçao host
- 2.0.7 - 18/01/2017 Fix alteração do site. [@faelp22](https://github.com/faelp22)
- 2.0.6 - 18/08/2016 Correção SSL. [@clbonatto](https://github.com/clbonatto) [@JRAVILES](https://github.com/JRAVILES) [@gustavomac89](https://github.com/gustavomac89)
- 2.0.5 - 23/07/2016 Retornando mais dados. [@marcelosevero](https://github.com/marcelosevero)
- 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 &gt;=5.4
- 2.0.0 - 18/11/2014 Alteração do site

### Como utilizar

[](#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'],
    'INFORME_O_TOKEN_DO_CAPTCHA'
);
```

### Gostou? Conheça também

[](#gostou-conheça-também)

- [CnpjGratis](https://github.com/jansenfelipe/cnpj-gratis)
- [CepGratis](https://github.com/jansenfelipe/cep-gratis)
- [CidadesGratis](https://github.com/jansenfelipe/cidades-gratis)
- [NFePHPSerialize](https://github.com/jansenfelipe/nfephp-serialize)

### License

[](#license)

The MIT License (MIT)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7804accedd190804443c7150e8f0185530d3db578825b437e4e59010aae1d6c?d=identicon)[lucasbrito-wdt](/maintainers/lucasbrito-wdt)

---

Top Contributors

[![lucasbrito-wdt](https://avatars.githubusercontent.com/u/30214900?v=4)](https://github.com/lucasbrito-wdt "lucasbrito-wdt (5 commits)")

### Embed Badge

![Health badge](/badges/luquinhasbrito-cpf/health.svg)

```
[![Health](https://phpackages.com/badges/luquinhasbrito-cpf/health.svg)](https://phpackages.com/packages/luquinhasbrito-cpf)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
