PHP code example of leewayweb / ci_php

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

    

leewayweb / ci_php example snippets




eewayweb\CiValidator\CiValidator;

$validator = new CiValidator();



eewayweb\CiValidator\CiValidator;

$validator = new CiValidator();

echo "Validation for '1.111.111': ".($validator->validate_ci( '1.111.111' ) ? 'true' : 'false').PHP_EOL;



eewayweb\CiValidator\CiValidator;

$validator = new CiValidator();

echo "Validation digit for '1.111.111': ".$validator->validation_digit( '1.111.111' ).PHP_EOL;
composer