PHP code example of giles / library

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

    

giles / library example snippets


use Giles\Library\IdCard;

$idCard = new IdCard();
//验证身份证合法性,合法返回相应的所属信息,不合法返回false
$idcard->verification('210203197503102721');
//随机生成一个身份证号
$idcard->generate();

use Giles\Library\Snowflake;

//生成一个全局唯一ID
echo Snowflake::uniqueId();