pyaesoneaung / myanmar-phone-validation-rules
Myanmar Phone Number Validation Rules For Laravel
Installs: 1 011
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.0.0
- cyberwings/myanmar-phone-number-php: ^0.0.3
README
Installation
composer require pyaesoneaung/myanmar-phone-validation-rules
Usage
MyanmarPhone
use PyaeSoneAung\MyanmarPhoneValidationRules\MyanmarPhone; $request->validate([ 'phone' => ['required', new MyanmarPhone], ]);
MPT
use PyaeSoneAung\MyanmarPhoneValidationRules\Mpt; $request->validate([ 'phone' => ['required', new Mpt], ]);
Ooredoo
use PyaeSoneAung\MyanmarPhoneValidationRules\Ooredoo; $request->validate([ 'phone' => ['required', new Ooredoo], ]);
Telenor
use PyaeSoneAung\MyanmarPhoneValidationRules\Telenor; $request->validate([ 'phone' => ['required', new Telenor], ]);
Mytel
use PyaeSoneAung\MyanmarPhoneValidationRules\Mytel; $request->validate([ 'phone' => ['required', new Mytel], ]);
MEC
use PyaeSoneAung\MyanmarPhoneValidationRules\Mec; $request->validate([ 'phone' => ['required', new Mec], ]);