Proficient UZI pass reader in php.
- PHP >= 7.3
Apache config (or NginX equivalent):
SSLEngine on
SSLProtocol -all +TLSv1.3
SSLHonorCipherOrder on
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLVerifyClient require
SSLVerifyDepth 3
SSLCACertificateFile /path/to/uziCA.crt
SSLOptions +StdEnvVars +ExportCertData
$uzi = new \MinVWS\PUZI\UziReader;
$data = $uzi->getData();
var_dump($data);
array(9) {
'givenName' =>
string(4) "john"
'surName' =>
string(12) "doe-11111111"
'OidCa' =>
string(25) "2.16.528.1.1003.1.3.5.5.2"
'UziVersion' =>
string(1) "1"
'UziNumber' =>
string(8) "11111111"
'CardType' =>
string(1) "N"
'SubscriberNumber' =>
string(8) "90000111"
'Role' =>
string(6) "01.015"
'AgbCode' =>
string(8) "00000000"
}
PHP Secure Communications Library
-
Fork the Project
-
Ensure you have Composer installed (see Composer Download Instructions)
-
Install Development Dependencies
composer install
-
Create a Feature Branch
-
(Recommended) Run the Test Suite
vendor/bin/phpunit
-
(Recommended) Check whether your code conforms to our Coding Standards by running
vendor/bin/phpstan analyse vendor/bin/psalm vVendor/bin/phpcs
-
Send us a Pull Request