rightrun / proof-identity
v0.0.2
2024-02-21 09:30 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: >=7.5.0
- spomky-labs/php-aes-gcm: ~1.2
Requires (Dev)
- phpunit/php-file-iterator: ~3.0.5
- phpunit/php-invoker: ~3.1
- phpunit/phpunit: 9.6.8
Suggests
- ext-json: *
- ext-openssl: Required to use HTTPS.
README
安装
composer require rightrun/proof-identity
一、 实名认证库
1. 工宣部实名
2. 阿里实名
阿里二要素 https://market.aliyun.com/products/57000002/cmapi029454.html
二、实名测试
1. 安装phpunit
$ curl -LO https://phar.phpunit.de/phpunit-9.6.phar $ chmod +x phpunit-9.6.phar $ sudo mv phpunit-9.6.phar /usr/local/bin/phpunit $ phpunit --version
2. 运行单元测试
#单个测试 #国家游戏防沉迷实名测试 phpunit --bootstrap tests/bootstrap.php tests/Cases/WlcnppaProofTest.php #国家游戏防沉迷系统账号激活单元测试 phpunit --bootstrap tests/bootstrap.php tests/Cases/WlcnppaActivationTest.php #阿里 phpunit --bootstrap tests/bootstrap.php tests/Cases/AliyunProofTest.php