Skip to content

Commit

Permalink
Merge pull request #2 from njoguamos/clarify-validation-rule
Browse files Browse the repository at this point in the history
Clarify validation rule
  • Loading branch information
njoguamos authored Feb 12, 2023
2 parents 80f34b9 + 0066d39 commit e2e684a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ A rule for validating Kenyan mobile number.
1. Save time from implementing your own validation rule.
2. Tested with phone number approved by [Communications Authority of Kenya](https://www.ca.go.ke/wp-content/uploads/2023/01/Telecommunication-Numbering-Plan-for-Kenya-January-2023.pdf) supported.

>**Info**
> This package assumed that the phone number is either a 9 digit e.g `700325008` or 10 digit `0700325008`.
> Number with leading `zero (0)` should be casted into an `(int)` before storing in a database.
> It also assumed that you will store the prefix `+254` in different column or table.
## 2. Installation

You can install the package via composer:
Expand Down

0 comments on commit e2e684a

Please sign in to comment.