Borales/yii2-phone-input

Mobile phone not validating correctly

Opened this issue · 2 comments

Hi.
Your extension does not validate correctly for Kyrgyzstan mobile phones. For example: 996505502726.

@SerikK could you please share a piece of code with the usage of this extension?

Does the original package validate your phone pattern? (https://github.com/giggsey/libphonenumber-for-php)

My code:
[ ['phone'], PhoneInputValidator::className(), 'region' => Yii::$app->params['supportedPoneCountries'], 'message' => Yii::t( 'models', 'The format of the phone is invalid or system not supported your country.' ) ],.
Yes, original package validate.