Skip to content

中国移动通信手机号工具包:查询是否合法、查询所属运营商、查询归属地等

License

Notifications You must be signed in to change notification settings

xu42/china-mobile-number-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

China Mobile Number SDK for Java

Build Status Maven Central Code Coverage

Getting Started

Install the SDK

<dependency>
  <groupId>com.github.xu42</groupId>
  <artifactId>china-mobile-number</artifactId>
  <version>1.0.2</version>
</dependency>

Examples

// mobile number is valid
boolean isValid = ChinaMobileNumber.isValid("13800138000");

// get mobile number opertor 
ChinaMobileOperatorEnum operator = ChinaMobileNumber.getOperator("13800138000");

Building From Source

Once you check out the code from GitHub, you can build it using Maven. To disable test and the GPG-signing in the build, use:

mvn clean install -Dmaven.test.skip=true -Dgpg.skip=true

About

中国移动通信手机号工具包:查询是否合法、查询所属运营商、查询归属地等

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages