PHP code example of czechphp / ico-validator

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

    

czechphp / ico-validator example snippets




use Czechphp\ICOValidator\ICOValidator;

$validator = new ICOValidator();
$violation = $validator->validate('25596641');

if ($violation === ICOValidator::ERROR_NONE) {
    // valid
}