PHP code example of lightools / company-id-validator

1. Go to this page and download the library: Download lightools/company-id-validator 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/ */

    

lightools / company-id-validator example snippets


$validator = new Lightools\CompanyIdValidator\CompanyIdValidator();
$validator->isValidId('27082440'); // true
$validator->isValidId('25596641'); // true
$validator->isValidId('1859951'); // true (leading zero added, you can disable this function in constructor)
$validator->isValidId('12345678'); // false