{"id":16731351,"url":"https://github.com/trickeyone/intl-subdivision","last_synced_at":"2025-04-10T11:13:43.533Z","repository":{"id":47692512,"uuid":"73144269","full_name":"trickeyone/intl-subdivision","owner":"trickeyone","description":"IntlSubdivision Component - Retrieve State/Province Information","archived":false,"fork":false,"pushed_at":"2023-10-23T19:13:12.000Z","size":289,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T08:29:39.684Z","etag":null,"topics":["country","country-codes","intl-extension","intl-subdvision","php","province","provinces","state","states","subdivision","symfony","symfony-intl-component"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trickeyone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-08T03:13:39.000Z","updated_at":"2023-01-23T12:08:18.000Z","dependencies_parsed_at":"2024-10-12T23:37:03.562Z","dependency_job_id":"7fc8a64a-afa4-4f4d-b7dc-b1c6683384f0","html_url":"https://github.com/trickeyone/intl-subdivision","commit_stats":{"total_commits":59,"total_committers":7,"mean_commits":8.428571428571429,"dds":"0.23728813559322037","last_synced_commit":"e2c90a0e1d3b896c908070766ebcd8aa5fb3696b"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickeyone%2Fintl-subdivision","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickeyone%2Fintl-subdivision/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickeyone%2Fintl-subdivision/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickeyone%2Fintl-subdivision/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trickeyone","download_url":"https://codeload.github.com/trickeyone/intl-subdivision/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208570,"owners_count":21065203,"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","country-codes","intl-extension","intl-subdvision","php","province","provinces","state","states","subdivision","symfony","symfony-intl-component"],"created_at":"2024-10-12T23:36:47.481Z","updated_at":"2025-04-10T11:13:43.511Z","avatar_url":"https://github.com/trickeyone.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"IntlSubdivision Component\n=============\n\n[![PHPUnit](https://github.com/trickeyone/intl-subdivision/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/trickeyone/intl-subdivision/actions/workflows/unit-tests.yml)\n![code coverage badge](https://raw.githubusercontent.com/trickeyone/intl-subdivision/gh-images/coverage.svg)\n[![Test Coverage](https://codeclimate.com/github/trickeyone/intl-subdivision/badges/coverage.svg)](https://codeclimate.com/github/trickeyone/intl-subdivision/coverage)\n[![Code Climate](https://codeclimate.com/github/trickeyone/intl-subdivision/badges/gpa.svg)](https://codeclimate.com/github/trickeyone/intl-subdivision)\n\n\nA companion component to Symfony's Intl Component. This component allows for easy retrieval of a country's states/provinces\nusing the country's [ISO 3166-1 alpha-2][0] code.\n\nThe Symfony Intl component is a replacement for the C intl extension. It is limited to only the \"en\" locale. If you want\nto have access to more locales you should [install the intl PECL extension][1].\n\n### Usage:\n\n```php\n// States/Provinces for the United States of America\n$subdivisionsForUS = \\Symfony\\Component\\IntlSubdivision\\IntlSubdivision::getStatesAndProvincesForCountry('US');\n  \n// States/Provinces for Canada\n$subdivisionsForCA = \\Symfony\\Component\\IntlSubdivision\\IntlSubdivision::getStatesAndProvincesForCountry('CA');\n  \n// States/Provinces for the United Arab Emirates\n$subdivisionsForAE = \\Symfony\\Component\\IntlSubdivision\\IntlSubdivision::getStatesAndProvincesForCountry('AE');\n```\n\nRequirements\n-----------\n* PHP 7+ or 8+\n* Symfony Intl package 5.0+ or 6.0+\n  * older versions can still support 4.0+ but are not actively supported\n\nResources\n---------\n\n  * [Symfony Intl Documentation](https://symfony.com/doc/current/components/intl.html)\n  * [Report issues](https://github.com/trickeyone/intl-subdivision/issues) and\n    [send Pull Requests](https://github.com/trickeyone/intl-subdivision/pulls)\n\n[0]: http://www.iso.org/iso/home/standards/country_codes.htm\n[1]: http://www.php.net/manual/en/intl.setup.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickeyone%2Fintl-subdivision","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrickeyone%2Fintl-subdivision","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickeyone%2Fintl-subdivision/lists"}