sushantaryal / nepali-phone-validation
A Laravel validation rule for Nepalese mobile phone numbers.
1.1.1
2025-06-02 11:08 UTC
Requires
- php: ^8.1
- illuminate/validation: ^10.0|^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^9.0|^10.4|^11.5
README
A Laravel package for validating Nepalese mobile phone numbers using custom validation rules.
Installation
You can install the package via Composer:
composer require sushantaryal/nepali-phone-validation
Usage
use Sushant\NepaliPhoneValidation\Rules\NepaliPhone; $request->validate([ 'phone' => ['required', new NepaliPhone()], ]);
Supported Prefixes
984, 985, 986, 980, 981, 982, 961, 988, 972