Download the PHP package trishanapp/lk-business-validator without Composer
On this page you can find all versions of the php package trishanapp/lk-business-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trishanapp/lk-business-validator
More information about trishanapp/lk-business-validator
Files in trishanapp/lk-business-validator
Package lk-business-validator
Short Description Validate Sri Lanka business data: NIC, BR numbers, phone numbers, postal codes, VAT/TIN, and more.
License MIT
Homepage https://github.com/trishanapp/lk-business-validator
Informations about the package lk-business-validator
๐ฑ๐ฐ lk-business-validator
The only PHP validation library built specifically for Sri Lanka.
Validate NIC numbers, Business Registration numbers, phone numbers, postal codes, and VAT/TIN numbers โ with parsing, normalization, and Laravel rule integration out of the box.
๐ฆ Installation
Laravel users: the service provider auto-discovers โ no config needed.
๐ Quick Start
๐ Full API Reference
NIC Validator
Phone Validator
Networks detected: Dialog, Dialog/Mobitel, Airtel, Hutch, SLT
Business Registration Validator
| Prefix | Type |
|---|---|
| PV | Private Limited Company |
| PB | Public Company |
| HP | Foreign Company (Branch) |
| SP | Sole Proprietorship |
| PR | Partnership |
| GN | Guarantee Company |
| SC | Unlimited Company |
Postal Code Validator
VAT / TIN Validator
Batch Validation
๐ง Laravel Integration
After installing, these validation rules are automatically available:
Custom error messages:
๐งช Running Tests
๐๏ธ Built for Sri Lankan Developers
This package is maintained by Trishan โ founder of Leading Edge Solutions and builder of Sri Lankan SaaS products including Ceylon Ledger.
If this package saved you time, consider sponsoring on GitHub โ