Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faisalman/phone-identifier-java
PhoneIdentifier.java - Indonesian phone number identifier
https://github.com/faisalman/phone-identifier-java
phone-number-identifier phone-number-parser
Last synced: about 1 month ago
JSON representation
PhoneIdentifier.java - Indonesian phone number identifier
- Host: GitHub
- URL: https://github.com/faisalman/phone-identifier-java
- Owner: faisalman
- Created: 2013-04-08T14:02:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-17T07:34:36.000Z (over 11 years ago)
- Last Synced: 2024-06-24T00:21:31.977Z (5 months ago)
- Topics: phone-number-identifier, phone-number-parser
- Language: Java
- Homepage:
- Size: 133 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# PhoneIdentifier.java
Phone number identifier (currently only support Indonesian number format)
## Example
```java
import com.faisalman.phoneidentifier.*;public class Example {
public static void main(String[] args) {
System.out.println(Phone.identify("628552345678").provider.name()); // Indosat
System.out.println(Phone.identify("0812 345 678").provider.name()); // Telkomsel
System.out.println(Phone.identify("022911223344").provider.name()); // Esia
System.out.println(Phone.identify("023187654321").area.code); // 231
System.out.println(Phone.identify("+62227654321").area.name); // Bandung
System.out.println(Phone.identify("021-765-4321").area.name); // Jakarta
System.out.println(Phone.identify("(061)7654321").area.name); // Medan
}
}
```## License
MIT License
Copyright © 2013 Faisalman <>