https://github.com/zhooravell/php-iso-3166-1
ISO 3166-1 php helper
https://github.com/zhooravell/php-iso-3166-1
country-codes iso-3166-1 iso-3166-1-alpha-2 iso-3166-1-alpha-3 iso-3166-1-numeric php
Last synced: about 1 year ago
JSON representation
ISO 3166-1 php helper
- Host: GitHub
- URL: https://github.com/zhooravell/php-iso-3166-1
- Owner: zhooravell
- License: mit
- Created: 2018-08-16T16:08:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T10:13:21.000Z (almost 6 years ago)
- Last Synced: 2025-04-17T06:44:24.671Z (about 1 year ago)
- Topics: country-codes, iso-3166-1, iso-3166-1-alpha-2, iso-3166-1-alpha-3, iso-3166-1-numeric, php
- Language: PHP
- Homepage: https://zhooravell.github.io/php-iso-3166-1/
- Size: 47.9 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP ISO-3166-1 library
> A PHP library providing ISO 3166-1 data.
[](https://travis-ci.com/zhooravell/php-iso-3166-1)
[](https://codecov.io/gh/zhooravell/php-iso-3166-1)
[](https://packagist.org/packages/zhuravel/php-iso-3166-1)
## Installing
``` sh
$ composer require zhuravel/php-iso-3166-1
```
## Example #1
```php
$name) {
echo sprintf("%s %s\n", $code, $name);
}
```
## Example #3
```php
fromAlphaTwoCode('CA');
var_dump($canada);
```
## Source(s)
* [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) by [Wikipedia](http://www.wikipedia.org) licensed under [CC BY-SA 3.0 Unported License](http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License)
* [www.iso.org](http://www.iso.org)