Borales / yii2-phone-input

Yii2 International telephone numbers
Other
135 stars 55 forks source link

Mobile phone not validating correctly #42

Open SerikK opened 6 years ago

SerikK commented 6 years ago

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

Borales commented 6 years ago

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

SerikK commented 6 years ago

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.