Developer guides
PK Validate

Why use PK Validate

Lightweight format validation for Pakistani identifiers and mobile numbers.

PK VALIDATE · WHY USE IT

Normalize regional input consistently

Use the library to normalize common formatting and consistently explain input shape requirements in your UI.

It can save you from duplicating small format rules across forms while leaving the UI and error messages under your control.

All checks run locally in the application. This is useful for immediate feedback and avoids a validation API request, but it does not replace authoritative checks by a government, carrier, or financial institution.

The package deliberately does not guess a mobile carrier: number portability and the absence of an authoritative maintained prefix source would make that result unreliable.