From 0ef736da09163801bf28c55d1832b84d1f253327 Mon Sep 17 00:00:00 2001 From: Chris Dixon Date: Wed, 8 Jan 2025 19:11:33 +0000 Subject: [PATCH] feat: handle Philippines phone number --- Ucc/Data/Types/Basic/PhoneNumberType.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Ucc/Data/Types/Basic/PhoneNumberType.php b/Ucc/Data/Types/Basic/PhoneNumberType.php index 178409e..eb91064 100644 --- a/Ucc/Data/Types/Basic/PhoneNumberType.php +++ b/Ucc/Data/Types/Basic/PhoneNumberType.php @@ -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}$/', @@ -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',