yii2-phone-input icon indicating copy to clipboard operation
yii2-phone-input copied to clipboard

Mobile phone not validating correctly

Open SerikK opened this issue 7 years ago • 2 comments

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

SerikK avatar Feb 15 '18 11:02 SerikK

@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)

Borales avatar Feb 15 '18 13:02 Borales

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.

SerikK avatar Feb 16 '18 01:02 SerikK