PHP code example of stenfrank / dian-dv

1. Go to this page and download the library: Download stenfrank/dian-dv 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/ */

    

stenfrank / dian-dv example snippets



use Stenfrank\DianDV\Facades\DV;

DV::getDV(901210113); // 3



use Stenfrank\DianDV\Facades\DV;

DV::check('9012101133'); // true
DV::check('901210113-3'); // true
DV::check('9012101138'); // false
DV::check('901210113-8'); // false
DV::check(' 9012101133 '); // true
DV::check('901210113/3', '/'); // true
DV::check('901210113*8', '*'); // false