Monarobase / country-list

List of all countries with names and ISO 3166-1 codes in all languages and data formats
245 stars 37 forks source link

Phone Number Support | ISO Code #27

Open teamseamive opened 3 years ago

teamseamive commented 3 years ago

Greetings, Is there a way we can have country code phone numbers with it? like for the US or Canada, it's +1 and so on, Both national and international format.

Messhias commented 3 years ago

You mean support by just the countries flag like US, CA like?

teamseamive commented 3 years ago

We meant phone number support to validate Phone Numbers when the user selects country. Example, when someone selects US, it should set dial code to +1 and also validate the phone for that country,

Messhias commented 3 years ago

We meant phone number support to validate Phone Numbers when the user selects country. Example, when someone selects the US, it should set dial code to +1 and also validate the phone for that country,

I guess for this case we need to update the JSON right? Did you create a PR for solve this issue? Could be useful if you know how to do it.

forxer commented 1 year ago

I think it's not within the scope of this package; use Propaganistas/Laravel-Phone instead which does this just fine