Questions tagged [libphonenumber]

Google's common Java, C++ and Javascript library for parsing, formatting, storing and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich).

libphonenumber is a library for handling phone numbers. It can parse and format phone numbers as well as provide geographical information about phone numbers.

libphonenumber is written by Google engineers and is used in Android and other Google projects.

230 questions
0
votes
1 answer

requires ext-intl * php

I am using UBUNTU 14.04 and with xampp installed. however, I am having issue download package from https://github.com/giggsey/libphonenumber-for-php. I have got the composer installed as well. created composer.json file When I run php…
maikucao
  • 119
  • 1
  • 10
0
votes
1 answer

libphonenumber node.js formats number to intl format even if it is invalid

I am using the libphonenumber library for node.js In the google demo for this library, if I enter an invalid phone number, the intl format is not populated. But when I try to parse an invalid number via node.js library, it creates the intl string…
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104
0
votes
1 answer

iOS Plist file and Library + libPhoneNumber-iOS

We are building three iOS application, these three apps are almost the same, so we have decided to create and use a library for the core of these apps. Also we are using CocoaPods for the dependencies. Everything is working fine except for…
Maurice
  • 2,129
  • 2
  • 25
  • 33
0
votes
1 answer

Getting uncaught typeerror Object has no such method getExampleNumber - libphonenumber

I'm trying to use the Google Javascript library liibphonenumber to return a sample number given a region code. I'm calling it in a block in a JSP file: The error returned…
Les
  • 487
  • 1
  • 10
  • 22
0
votes
1 answer

How to format all phone numbers in string (javascript)

I need to format the phone numbers found in the source string, preserving the position of the numbers in the source string. I have an arbitrary string containing list of phone numbers. They are listed irregularly, interspersed by various markers and…
hijarian
  • 2,159
  • 1
  • 28
  • 34
0
votes
1 answer

how to remove Dash form phone number format XXX-XXX-XXXX in Android

Can anybody help me to solve this problem.? I have added Dash(-) between phone numbers. Here Below I have mentioned my code. // Removing from here Now I want to remove dash(-) when I press back button. In my case I can't able to do that. Let's say…
jt.
  • 283
  • 2
  • 5
  • 16
0
votes
1 answer

PhoneNumberUtil libphonenumber dialing international numbers without prefix

using googles PhoneNumberUtil, the c# ported version I am trying to dial a numbers like below 441392200200 (that have the plus(+) prefix missing) it has obviously the missing plus char at the beginning, i.e. it should be +441392200200 Is there any…
user1320651
  • 808
  • 2
  • 15
  • 42
0
votes
1 answer

How to use libphonenumber for php

I was having difficulty getting libphonenumber for PHP to run as per this question. All I got was: My output: Warning: require(/var/www/phone/libphonenumber/vendor/autoload.php): failed to open stream: No such file or directory in…
SteveMc
  • 65
  • 1
  • 12
-1
votes
1 answer

Get phone number in "+1 (303) 123-4567" format

I am using libphonenumber-csharp and when I make the following call: PhoneNumberUtil = PhoneNumberUtil.GetInstance(); var phoneNumber = PhoneNumberUtil.Parse(e164PhoneNumber, null); return PhoneNumberUtil.Format(phoneNumber,…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
-1
votes
1 answer

Can I safely append '+' to a phone number before validation

We are using libphonenumber library for validating a phone number which user is expected to enter as a string. Sample code that we use var phoneNumberObj = phoneUtil.Parse(phoneNumber, default); bool isValid =…
niteshb
  • 2,599
  • 2
  • 17
  • 16
-1
votes
1 answer

Problem with getting libphonenumber to work with autoloader.php

Good day, I'm unable to use the libphonenumber framework by using autoloader.php with spl_autoload_register. I'm not using composer, but want to use a PSR4 autoloader. I have tried a number of examples found here and elsewhere, but no success. For…
marlon1215
  • 11
  • 4
-1
votes
1 answer

libphonenumber PHP country

I am using this library: https://github.com/davideme/libphonenumber-for-PHP. Here is the demo code:
Awais A.
  • 39
  • 1
  • 7
-2
votes
1 answer

How to get a valid phone number from text document using libphonenumber?

libphonenumber requires a phone number and a country name as a parameter to verify a phone number. PhoneNumber numberProto = phoneUtil.parse("044 668 18 00", "CH"); System.out.println(numberProto); System.out.println("is…
Belhe001
  • 89
  • 9
-2
votes
1 answer

Format a unstructured phone # input in 999-999-9999 format

I am looking for a way to take phone numbers Input from an end user, given the various ways that can be formatted, and reformat it in a more standardized way. My end users work with only US phone numbers. Looking at the C# port of google's…
Aheho
  • 12,622
  • 13
  • 54
  • 83
-2
votes
1 answer

Why the phone number format pattern is different for the same country on different devices (android and iOS) using libphonenumber library?

I have used the same library for iOS and Android with same method/code for formatting phone number For example the format of same Indian mobile number without country code for iOS is different from android SDK Android SDK: XX XX XXXXXX iOS SDK: …
Bhavik Modi
  • 1,517
  • 14
  • 29
1 2 3
15
16