https://github.com/diversen/intl-phone
Get intl dial code info from country code
https://github.com/diversen/intl-phone
Last synced: over 1 year ago
JSON representation
Get intl dial code info from country code
- Host: GitHub
- URL: https://github.com/diversen/intl-phone
- Owner: diversen
- Created: 2016-02-12T10:31:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-13T10:18:49.000Z (over 10 years ago)
- Last Synced: 2025-02-07T22:27:53.996Z (over 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# intl-phone
Get intl dial code info from country code (ISO 3166-1 alpha-2 code)
See: [https://en.wikipedia.org/wiki/ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
Install:
composer require diversen/intl-phone
Usage:
~~~.php
include_once "vendor/autoload.php";
use \diversen\intl\phone;
$p = new phone();
$ary = $p->getCountryInformation('dk');
print_r($ary);
~~~
Yields:
Array
(
[country_name] => DENMARK
[dial_code] => 45
)