PHP code example of nanoarmando / cnecheck

1. Go to this page and download the library: Download nanoarmando/cnecheck library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nanoarmando / cnecheck example snippets



use CNE\Cne;

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

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