PHP code example of george-t / common_lib
1. Go to this page and download the library: Download george-t/common_lib 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/ */
george-t / common_lib example snippets
use georgeT\CommonLib\IdentityCard;
$idCardNo = '510715198907254875';
$bool = IdentityCard::isValid($idCardNo);
var_dump($bool);
use georgeT\CommonLib\RegexCreditCode;
$idCardNo = '91510124MA61TWJ56K';
$bool = RegexCreditCode::isValid($idCardNo);
var_dump($bool);