Propaganistas / Laravel-Phone

Phone number functionality for Laravel
https://laravel-phone.herokuapp.com/
MIT License
2.76k stars 219 forks source link

Failing phone formats #102

Closed nikklass closed 5 years ago

nikklass commented 5 years ago

Hi guys,

Am having aproblem validating Kenyan phone numbers esp those starting with these: 25475XXXXXXX. Apparently these are new number formats that were added by a Kenyan mobile phone operator Safaricom. Any ideas on solving this?

nikklass commented 5 years ago

Also 25477XXXXXXX. They keep throwing an exception that the number formats are invalid.

nikklass commented 5 years ago

The phone numbers seem to validate well on libphonenumber: https://giggsey.com/libphonenumber/?phonenumber=254757953698&country=KE&language=&region= returns valid responses. Any known issues here?

nikklass commented 5 years ago

Or better still, how do i update so that my installation uses the latest version of giggsey/libphonenumber-for-php? It seems like am using an older version.

Propaganistas commented 5 years ago

It's validating just fine.

Laravel-Phone validator