Skip to content

Commit

Permalink
Merge pull request #179 from chris-wm/feature/phil
Browse files Browse the repository at this point in the history
feat: handle Philippines phone number
  • Loading branch information
krisrybak authored Jan 9, 2025
2 parents eaddcb6 + 0ef736d commit 2ef033a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Ucc/Data/Types/Basic/PhoneNumberType.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public static function checkInternationalNumber($value, $plusPrefix = false)
'77' => '/^\+77[0-9]{9}$/',
'66' => '/^\+66[2-9][0-9]{7,8}$/',
'65' => '/^\+65[1-9][0-9]{7}$/',
'63' => '/^\+63[9][0-9]{9}$/',
'62' => '/^\+62[1-9][0-9]{6,12}$/',
'60' => '/^\+60[0-9]{9,10}$/',
'599' => '/^\+599[1-9][0-9]{6,7}$/',
Expand Down Expand Up @@ -369,6 +370,9 @@ public static function checkInternationalNumber($value, $plusPrefix = false)
'65' => 'the Singapore international numbering plan starts +65, followed'
. ' by the phone number with the leading 0 removed.'
. ' Length Min:10 Max:10',
'63' => 'the Philippines international numbering plan starts +63, followed'
. ' by a the phone number starting with 9 with the leading 0 removed.'
. ' Length Min:10 Max:10',
'62' => 'the Indonesian international numbering plan starts +62, followed'
. ' by the phone number with the leading 0 removed.'
. ' Length Min:7 Max:13',
Expand Down

0 comments on commit 2ef033a

Please sign in to comment.