PHPackages                             douglasresendemaciel/receita-federal - 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. douglasresendemaciel/receita-federal

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

douglasresendemaciel/receita-federal
====================================

Get documents information from brazilian receita federal

2152PHP

Since Apr 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/douglasresendemaciel/receita-federal)[ Packagist](https://packagist.org/packages/douglasresendemaciel/receita-federal)[ RSS](/packages/douglasresendemaciel-receita-federal/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Receita Federal Hack for LARAVEL to get CPF and CNPJ information
================================================================

[](#receita-federal-hack-for-laravel-to-get-cpf-and-cnpj-information)

This library allow you get CPF and CNPJ from Receita Federal do Brasil.

Installation
------------

[](#installation)

Run the following command from you terminal:

```
composer require "douglasresendemaciel/receita-federal:@dev"
```

or add this to require section in your composer.json file:

```
"douglasresendemaciel/receita-federal"

```

then run `composer update`

Once it is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

```
'providers' => [
...
DouglasResende\ReceitaFederal\ReceitaFederalServiceProvider::class
...
```

Rotes
-----

[](#rotes)

For captcha route, selected the 'TYPE' of document = 'CPF' or 'CNPJ'

```
...
CAPTCHA ROUTE => route( 'receita-federal.captcha', ['document' => TYPE ] )

PROCESS ROUTE CNPJ => route( 'receita-federal.processCNPJ', ['cnpj' => number, 'captcha' => value ] )
PROCESS ROUTE CPF => route( 'receita-federal.processCPF', ['cpf' => number, 'captcha' => value, 'birthday' => 'd/m/Y' ] )
...
```

Usage
-----

[](#usage)

To show the captcha image, use img tag like ``

then post the form to be processed at the routes of PROCESS ROUTES

Author
------

[](#author)

Douglas Resende:

License
-------

[](#license)

Thanks
------

[](#thanks)

Marcos Peli: ()

References
----------

[](#references)

Code based on [https://github.com/Massa191/Consultas\_CNPJ\_CPF\_Receita\_Federal](https://github.com/Massa191/Consultas_CNPJ_CPF_Receita_Federal)For more information read the official documentation at

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/douglasresendemaciel-receita-federal/health.svg)

```
[![Health](https://phpackages.com/badges/douglasresendemaciel-receita-federal/health.svg)](https://phpackages.com/packages/douglasresendemaciel-receita-federal)
```

PHPackages © 2026

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