Download the PHP package vicent/laque-identity without Composer
On this page you can find all versions of the php package vicent/laque-identity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vicent/laque-identity
More information about vicent/laque-identity
Files in vicent/laque-identity
Download vicent/laque-identity
More information about vicent/laque-identity
Files in vicent/laque-identity
Vendor vicent
Package laque-identity
Short Description Laque Identity — Tanzania-focused KYC utilities: MRZ parsing (TD1/TD3), NIDA client, TIN & phone validation, and scoring. Framework-agnostic, SOLID, PSR-compliant.
License MIT
Package laque-identity
Short Description Laque Identity — Tanzania-focused KYC utilities: MRZ parsing (TD1/TD3), NIDA client, TIN & phone validation, and scoring. Framework-agnostic, SOLID, PSR-compliant.
License MIT
Please rate this library. Is it a good library?
Informations about the package laque-identity
Laque Identity
Laque Identity is a Tanzania‑focused PHP library for KYC:
- MRZ parsing & validation (TD1 for ID cards, TD3 for passports)
- NIDA client (pluggable; replace base URL with your production endpoint)
- TIN & Phone validation for Tanzania (with operator detection)
- KYC scoring (names, DoB, phone, document #)
Framework‑agnostic, SOLID, PSR‑compliant.
Installation
Quick Start
MRZ Parsing
Supports TD1 (3×30) and TD3 (2×44). Check digits validated per ICAO 9303.
NIDA Provider
Configure the base URL and credentials (replace with actual production values when ready).
- All requests support PSR-18 HTTP clients and PSR-3 logging.
- Responses are mapped to a common
IdentityRecord
DTO.
Laravel Integration (optional)
Logging
Pass any PSR‑3 logger (e.g., Monolog) to IdentityService
to record requests, response codes, and match outcomes. Correlate with a trace_id
for audits.
Testing
Documentation
- See
docs/index.md
for full guide docs/mrz.md
— MRZ formats and parserdocs/nida.md
— NIDA flows & endpoints (placeholders)docs/kyc.md
— KYC scoringdocs/laravel.md
— Laravel setup
Security
- Do not log PII (full MRZ, NIDA number). Mask sensitive fields.
- Use HTTPS and rotate API keys.
- Rate-limit NIDA requests and cache stable results per policy.
Author: Vicent Msomi — [email protected]
License: MIT
Publish config
Caching & HMAC
- Set
NIDA_CACHE_TTL
to cache verification responses. - Set
NIDA_HMAC_SECRET
to enableX-Signature
HMAC-SHA256 signing.
Running tests
-
Local (fast, no coverage required):
- With coverage (requires Xdebug or pcov):
All versions of laque-identity with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/simple-cache Version ^3.0
psr/log Version ^3.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/simple-cache Version ^3.0
psr/log Version ^3.0
The package vicent/laque-identity contains the following files
Loading the files please wait ....