dev-master
9999999-devGet documents information from brazilian receita federal
MIT
The Requires
by Douglas Resende Maciel
Wallogit.com
2017 © Pedro Peláez
Get documents information from brazilian receita federal
This library allow you get CPF and CNPJ from Receita Federal do Brasil., (*1)
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 ...
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' ] ) ...
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)
Douglas Resende: http://www.douglasresende.com/, (*11)
Marcos Peli: (http://www.facebook.com/pelimarcos), (*12)
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)
Get documents information from brazilian receita federal
MIT