2017 © Pedro Peláez
 

library receita-federal

Get documents information from brazilian receita federal

image

douglasresendemaciel/receita-federal

Get documents information from brazilian receita federal

  • Tuesday, April 11, 2017
  • by douglasresendemaciel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

Receita Federal Hack for LARAVEL to get CPF and CNPJ information

This library allow you get CPF and CNPJ from Receita Federal do Brasil., (*1)

Installation

Run the following command from you terminal:, (*2)

bash composer require "douglasresendemaciel/receita-federal:@dev", (*3)

or add this to require section in your composer.json file:, (*4)

"douglasresendemaciel/receita-federal", (*5)

then run composer update, (*6)

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

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

Rotes

For captcha route, selected the 'TYPE' of document = 'CPF' or 'CNPJ', (*8)

...
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

To show the captcha image, use img tag like <img src="{{ route( 'receita-federal.captcha', ['document' => TYPE ] ) }}" alt="captcha">, (*9)

then post the form to be processed at the routes of PROCESS ROUTES, (*10)

Author

Douglas Resende: http://www.douglasresende.com/, (*11)

License

Thanks

Marcos Peli: (http://www.facebook.com/pelimarcos), (*12)

References

Code based on https://github.com/Massa191/Consultas_CNPJ_CPF_Receita_Federal For more information read the official documentation at https://laravel.com/docs/5.4/, (*13)

The Versions

11/04 2017

dev-master

9999999-dev

Get documents information from brazilian receita federal

  Sources   Download

MIT

The Requires

 

by Douglas Resende Maciel