PHPackages                             grizzlyware/intl-zones - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. grizzlyware/intl-zones

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grizzlyware/intl-zones
======================

Provides a list of zones for countries

v1.2.1(3y ago)0225[2 PRs](https://github.com/grizzlyware/intl-zones/pulls)MITPHPPHP ^8.2

Since Mar 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/grizzlyware/intl-zones)[ Packagist](https://packagist.org/packages/grizzlyware/intl-zones)[ Docs](https://github.com/grizzlyware/intl-zones)[ RSS](/packages/grizzlyware-intl-zones/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

Provides a list of zones for countries
======================================

[](#provides-a-list-of-zones-for-countries)

[![Latest Version on Packagist](https://camo.githubusercontent.com/524ee54d1137279361d272e252a1950ae867caa206dfa6fea08711c118618228/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772697a7a6c79776172652f696e746c2d7a6f6e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grizzlyware/intl-zones)[![Tests](https://camo.githubusercontent.com/b6a8c2e65f3bcee4402ea4b7a7acb4ac9bc28114ce1f09ef360ac186ae7f1936/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6772697a7a6c79776172652f696e746c2d7a6f6e65732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/grizzlyware/intl-zones/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/d1e9ecfcf5ffc230d275ed0d061a4f3ed347cc1c0b92d9875e3f224f6bde842d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772697a7a6c79776172652f696e746c2d7a6f6e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grizzlyware/intl-zones)

This package provides a list of zones for a particular country.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require grizzlyware/intl-zones
```

Usage
-----

[](#usage)

```
use Grizzlyware\Intl\Zones\Zones;

$zones = Zones::forAlpha2Code('GB');

foreach ($zones as $zone) {
    echo "The name is: {$zone->name}" . PHP_EOL;

    if (null !== $zone->code) {
        echo "The code is: {$zone->code}" . PHP_EOL;
    } else {
        echo "No code available" . PHP_EOL;
    }
}

// Setting the locale (right now, only en is supported, and the default).
Zones::setLocale('en');
```

Disclaimer
----------

[](#disclaimer)

The data in this package is not guaranteed to be accurate or complete.

Generating new data
-------------------

[](#generating-new-data)

There is a generator script here: `bin/generate`

Running this script will pull in data from Stefan Gabos' [World Countries](https://github.com/stefangabos/world_countries) repository, which itself pulls data from Wikipedia.

Overrides are defined in `resources/overrides/zones/en.php` - This was created to cater for the United Kingdom, which doesn't have its counties listed in the repository above.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please open a PR with the additional zones and supported countries to override data.

If the data should be re-generated, please fork the repository, run the generator and open a PR.

Tests should be added where appropriate.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please do not publicly disclose any vulnerabilities - Report any vulnerabilities to  directly

Credits
-------

[](#credits)

- [Grizzlyware Ltd](https://github.com/grizzlyware)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

See [World Countries Repo](https://github.com/stefangabos/world_countries) for license of the source of the generated data.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

1153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8484110cb3665a1502f4095420c5a646e6694f3c42d63a6fcc8f5fd1736a755?d=identicon)[mewejo](/maintainers/mewejo)

---

Top Contributors

[![mewejo](https://avatars.githubusercontent.com/u/1097093?v=4)](https://github.com/mewejo "mewejo (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

intlstatesregionszonesgrizzlyware

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/grizzlyware-intl-zones/health.svg)

```
[![Health](https://phpackages.com/badges/grizzlyware-intl-zones/health.svg)](https://phpackages.com/packages/grizzlyware-intl-zones)
```

###  Alternatives

[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k774.6M90](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)[symfony/polyfill-intl-grapheme

Symfony polyfill for intl's grapheme\_\* functions

1.7k702.8M27](/packages/symfony-polyfill-intl-grapheme)[symfony/polyfill-intl-icu

Symfony polyfill for intl's ICU-related data and classes

2.6k251.4M96](/packages/symfony-polyfill-intl-icu)[pragmarx/countries

PHP Countries and Currencies

1.9k3.3M18](/packages/pragmarx-countries)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.7M](/packages/dougsisk-laravel-country-state)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
