odolbeau / phone-number-bundle

Integrates libphonenumber into your Symfony application
MIT License
214 stars 42 forks source link

Moroccan phone number starting with 07 are not valid #122

Closed Brahim1992 closed 2 years ago

Brahim1992 commented 2 years ago

Hello,

Some Moroccan phone numbers starting with 07 are not valid using this bundle like : 0711XXXXXX, 0712XXXXXX, 0713XXXXXX, 0715XXXXXX , even if the official demo of google lib phone number returns a valid result.

This is an example : https://libphonenumber.appspot.com/phonenumberparser?number=0712547208&country=MA

Is there any workaround to make this working on the bundle ?

Many thanks

Nek- commented 2 years ago

Hello, thank you very much for reaching out and trying to help.

This bundle is a library that makes it easy to use the libphonenumber-for-php library. The issue you are reporting here is not related to this bundle and should be reported to the library if the issue actually exists.

But according to my test below, the number you give as example (0712547208) seems to be detected as valid by libphonenumber: https://giggsey.com/libphonenumber/?phonenumber=0712547208&country=MA&language=&region=

Please try to upgrade the version of the library you're using.

I'm closing this issue since it's unrelated to the bundle and seems to be working on the library as well.