selkis / ven-id
Consultation of Venezuelan CI
v1.1.2
2017-01-14 19:57 UTC
Requires
- php: >=5.4.0
- illuminate/support: ~5.0
- ixudra/curl: 6.*
Requires (Dev)
- phpunit/phpunit: ^5.2
This package is not auto-updated.
Last update: 2024-11-18 13:42:17 UTC
README
Consultation of Venezuelan CI
Installation
Require the selkis/ven-id
package in your composer.json and update your dependencies.
$ composer require selkis/ven-id
Add the Providers to your config/app.php providers array:
Selkis\VenID\Providers\VenIdServicesProvider::class, Ixudra\Curl\CurlServiceProvider::class,
Add the Aliases to your config/app.php aliases array:
'Curl' => Ixudra\Curl\Facades\Curl::class, 'Seniat' => Selkis\VenID\Facades\SeniatFacades::class, 'CNE' => Selkis\VenID\Facades\CNEFacades::class,
Usage
To get information from the cne, you must invoke the CNE class to the getInfo method, sending the parameters "nationality" and "identification number".
public function index(){ return \CNE::getInfo('V','4824519'); };
To obtain information from the seniat, you must invoke the Seniat class to the method getInfo, sending you the parameter "rif"
public function index(){ return \Seniat::getInfo('V214714759'); };
License
Released under the MIT License, see LICENSE.