nanoarmando/cnecheck

A CNE check library

1.0.2 2015-12-29 19:15 UTC

This package is not auto-updated.

Last update: 2024-09-20 22:07:13 UTC


README

A library that allows you to check CNE website and get the information in JSON format.

Installation##

composer require nanoarmando/cnecheck

Use

require "vendor/autoload.php";
use CNE\Cne;

$search = new Cne('V','xxxxxxxx');
echo $search->search();

Additional Settings

//Another way to initialize
$search = new Cne();
$search->setData('V','xxxxxxxx');
//Using the CURL method
//See 'allow_url_fopen'
echo $search->search(CURL_METHOD);

License

MIT License