You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PHP library for parsing, formatting, storing and validating international phone numbers. This library is based on Google's [libphonenumber](https://code.google.com/p/libphonenumber/) and forked from a version by [Davide Mendolia](https://github.com/davideme/libphonenumber-for-PHP).
8
+
A PHP library for parsing, formatting, storing and validating international phone numbers. This library is based on Google's [libphonenumber](https://code.google.com/p/libphonenumber/) and was forked from a version by [Davide Mendolia](https://github.com/davideme/libphonenumber-for-PHP).
9
9
10
10
11
11
# Highlights of functionality
@@ -15,6 +15,7 @@ A PHP library for parsing, formatting, storing and validating international phon
15
15
*`getExampleNumber`/`getExampleNumberByType` - provides valid example numbers for all countries/regions, with the option of specifying which type of example phone number is needed.
16
16
*`isValidNumber` - full validation of a phone number for a region using length and prefix information.
17
17
* PhoneNumberOfflineGeocoder - provides geographical information related to a phone number.
18
+
* PhoneNumberToTimeZonesMapper - provides timezone information related to a phone number.
18
19
* PhoneNumberToCarrierMapper - provides carrier information related to a phone number.
19
20
20
21
## Installation
@@ -26,11 +27,18 @@ The PECL [mbstring](http://php.net/mbstring) extension is required for this libr
26
27
```json
27
28
{
28
29
"require": {
29
-
"giggsey/libphonenumber-for-php": "~6.0"
30
+
"giggsey/libphonenumber-for-php": "~7.0"
30
31
}
31
32
}
32
33
```
33
34
35
+
## Versioning
36
+
37
+
This library will try to follow the same version numbers as Google. There could be additional releases where needed to fix critical issues that can not wait until the next release from Google.
38
+
39
+
This does mean that this project will not follow [Semantic Versioning](http://semver.org/), but instead Google's version policy. As a result, jumps in major versions may not actually contain any backwards
40
+
incompatible changes. Please read the release notes for such releases.
41
+
34
42
35
43
## Online Demo
36
44
An [online demo](http://giggsey.com/libphonenumber/) is available, and the source can be found at [giggsey/libphonenumber-example](https://github.com/giggsey/libphonenumber-example).
@@ -79,11 +87,13 @@ There are a few formats supported by the formatting method, as illustrated below
0 commit comments