Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyaesoneaungrgn/myanmar-phone-validation-rules
Myanmar Phone Number Validation Rules For Laravel
https://github.com/pyaesoneaungrgn/myanmar-phone-validation-rules
laravel-validation-rules myanmar-phone-number
Last synced: 2 months ago
JSON representation
Myanmar Phone Number Validation Rules For Laravel
- Host: GitHub
- URL: https://github.com/pyaesoneaungrgn/myanmar-phone-validation-rules
- Owner: PyaeSoneAungRgn
- Created: 2021-05-23T04:36:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T02:19:24.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T12:19:17.951Z (3 months ago)
- Topics: laravel-validation-rules, myanmar-phone-number
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Myanmar Phone Number Validation Rules For Laravel
## Installation
```bash
composer require pyaesoneaung/myanmar-phone-validation-rules
```## Usage
### MyanmarPhone
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\MyanmarPhone;$request->validate([
'phone' => ['required', new MyanmarPhone],
]);
```### MPT
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\Mpt;$request->validate([
'phone' => ['required', new Mpt],
]);
```### Ooredoo
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\Ooredoo;$request->validate([
'phone' => ['required', new Ooredoo],
]);
```### Telenor
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\Telenor;$request->validate([
'phone' => ['required', new Telenor],
]);
```### Mytel
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\Mytel;$request->validate([
'phone' => ['required', new Mytel],
]);
```### MEC
```php
use PyaeSoneAung\MyanmarPhoneValidationRules\Mec;$request->validate([
'phone' => ['required', new Mec],
]);
```## Credits
[Ko Htet Wai Yan Soe (myanmar-phone-number-php)](https://github.com/johnreginald/myanmar-phone-number-php)