{"id":19956938,"url":"https://github.com/zhooravell/php-iso-3166-1","last_synced_at":"2025-05-03T21:30:26.968Z","repository":{"id":57091079,"uuid":"145011337","full_name":"zhooravell/php-iso-3166-1","owner":"zhooravell","description":"ISO 3166-1 php helper","archived":false,"fork":false,"pushed_at":"2020-09-07T10:13:21.000Z","size":49,"stargazers_count":10,"open_issues_count":3,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T06:44:24.671Z","etag":null,"topics":["country-codes","iso-3166-1","iso-3166-1-alpha-2","iso-3166-1-alpha-3","iso-3166-1-numeric","php"],"latest_commit_sha":null,"homepage":"https://zhooravell.github.io/php-iso-3166-1/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhooravell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-16T16:08:45.000Z","updated_at":"2020-07-01T03:48:50.000Z","dependencies_parsed_at":"2022-08-22T20:40:50.326Z","dependency_job_id":null,"html_url":"https://github.com/zhooravell/php-iso-3166-1","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhooravell%2Fphp-iso-3166-1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhooravell%2Fphp-iso-3166-1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhooravell%2Fphp-iso-3166-1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhooravell%2Fphp-iso-3166-1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhooravell","download_url":"https://codeload.github.com/zhooravell/php-iso-3166-1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252259294,"owners_count":21719657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["country-codes","iso-3166-1","iso-3166-1-alpha-2","iso-3166-1-alpha-3","iso-3166-1-numeric","php"],"created_at":"2024-11-13T01:36:00.913Z","updated_at":"2025-05-03T21:30:26.588Z","avatar_url":"https://github.com/zhooravell.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP ISO-3166-1 library\n\u003e A PHP library providing ISO 3166-1 data.\n\n[![Build Status](https://travis-ci.com/zhooravell/php-iso-3166-1.svg?branch=master)](https://travis-ci.com/zhooravell/php-iso-3166-1)\n[![codecov](https://codecov.io/gh/zhooravell/php-iso-3166-1/branch/master/graph/badge.svg)](https://codecov.io/gh/zhooravell/php-iso-3166-1)\n[![License](https://img.shields.io/packagist/l/zhuravel/php-iso-3166-1.svg?style=flat-square)](https://packagist.org/packages/zhuravel/php-iso-3166-1)\n\n## Installing\n\n``` sh\n$ composer require zhuravel/php-iso-3166-1\n```\n\n## Example #1\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\n$canada1 = getTwoCharacterCountries()['CA'];\n$canada2 = getThreeCharacterCountries()['CAN'];\n$canada3 = getNumericCountryCodes()['124'];\n\nvar_dump($canada1, $canada2, $canada3);\n```\n\n## Example #2\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nforeach (getTwoCharacterCountries() as $code =\u003e $name) {\n    echo sprintf(\"%s %s\\n\", $code, $name);\n}\n```\n\n## Example #3\n```php\n\u003c?php\nrequire 'vendor/autoload.php';\n\nuse Iso\\Countries\\Factory\\ISO3166CountryFactory;\n\n$factory = new ISO3166CountryFactory();\n\n$canada = $factory-\u003efromAlphaTwoCode('CA');\n\nvar_dump($canada);\n```\n\n## Source(s)\n\n* [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)\n* [www.iso.org](http://www.iso.org)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhooravell%2Fphp-iso-3166-1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhooravell%2Fphp-iso-3166-1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhooravell%2Fphp-iso-3166-1/lists"}