PHPackages                             gleisonnanet/cpf-gratis - 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. gleisonnanet/cpf-gratis

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

gleisonnanet/cpf-gratis
=======================

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

03PHP

Since Dec 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gleisonnanet/cpf-gratis)[ Packagist](https://packagist.org/packages/gleisonnanet/cpf-gratis)[ RSS](/packages/gleisonnanet-cpf-gratis/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CPF Grátis
==========

[](#cpf-grátis)

[![Travis](https://camo.githubusercontent.com/380ca4a8b7977ba4a9c92823dabe05609d4fac8530f71e1fd80b9a404d04265b/68747470733a2f2f7472617669732d63692e6f72672f676c6569736f6e6e616e65742f6370662d6772617469732e7376673f6272616e63683d332e30)](https://travis-ci.org/gleisonnanet/cpf-gratis)[![Latest Stable Version](https://camo.githubusercontent.com/b2bbccda914b6c87169167040f4d132e7d1ccc2f68d5a5ed16032f89e1dce00b/68747470733a2f2f706f7365722e707567782e6f72672f676c6569736f6e6e616e65742f6370662d6772617469732f762f737461626c652e737667)](https://packagist.org/packages/gleisonnanet/cpf-gratis)[![Total Downloads](https://camo.githubusercontent.com/2ebb0def771a6aef749f9e428b7f2827e7a3f079906820fc15623ca66ff646d8/68747470733a2f2f706f7365722e707567782e6f72672f676c6569736f6e6e616e65742f6370662d6772617469732f646f776e6c6f6164732e737667)](https://packagist.org/packages/gleisonnanet/cpf-gratis)[![Latest Unstable Version](https://camo.githubusercontent.com/53f18b28e87d5bfe74a389e7b66295ad801a89559cf0b9ce02c142b7bf6f962e/68747470733a2f2f706f7365722e707567782e6f72672f676c6569736f6e6e616e65742f6370662d6772617469732f762f756e737461626c652e737667)](https://packagist.org/packages/gleisonnanet/cpf-gratis)[![MIT license](https://camo.githubusercontent.com/94651ba0e4562a6b55a730c1c10609149f0d88227f0be6c267d0e16605be313e/68747470733a2f2f706f7365722e707567782e6f72672f676c6569736f6e6e616e65742f6e66657068702d73657269616c697a652f6c6963656e73652e737667)](http://opensource.org/licenses/MIT)

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 gleisonnanet/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 = gleisonnanet\CpfGratis\CpfGratis::getParams();
```

Agora basta chamar o método `consulta()`

```
$dadosPessoa = gleisonnanet\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/gleisonnanet/cnpj-gratis)
- [CepGratis](https://github.com/gleisonnanet/cep-gratis)
- [CidadesGratis](https://github.com/gleisonnanet/cidades-gratis)
- [NFePHPSerialize](https://github.com/gleisonnanet/nfephp-serialize)

### License

[](#license)

The MIT License (MIT)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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/4deaf39aa524bb7afb6c5753541d78e07150bf68eb4239de3aa2505d152db6a7?d=identicon)[gleisonnanet](/maintainers/gleisonnanet)

---

Top Contributors

[![gleisonnanet](https://avatars.githubusercontent.com/u/3974987?v=4)](https://github.com/gleisonnanet "gleisonnanet (4 commits)")

### Embed Badge

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

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

###  Alternatives

[klepak/nova-dynamic-page-title

Dynamically updates Laravel Nova page title based on data from Vue router.

11154.8k](/packages/klepak-nova-dynamic-page-title)

PHPackages © 2026

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