Skip to content

Commit

Permalink
feat: handle Philippines phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-wm committed Jan 8, 2025
1 parent eaddcb6 commit 0ef736d
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 0ef736d

Please sign in to comment.