PHPackages                             tourze/gb-t-2659 - 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. tourze/gb-t-2659

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

tourze/gb-t-2659
================

GB/T 2659 world countries and regions name code

1.0.0(6mo ago)01.5k5MITPHPCI passing

Since Mar 24Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/tourze/gb-t-2659)[ Packagist](https://packagist.org/packages/tourze/gb-t-2659)[ RSS](/packages/tourze-gb-t-2659/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (5)

GB/T 2659
=========

[](#gbt-2659)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/62fe08997440c4e6a4e405a726f1a7c5d0dc23343062db9b77973a9d120d656e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f67622d742d323635392e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2659)[![Total Downloads](https://camo.githubusercontent.com/2a8c8865169654f56486373caece8bbe168810967449ee4f76a35b12ebcb1abd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f67622d742d323635392e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2659)[![PHP Version](https://camo.githubusercontent.com/de3e16dd8e667c78033aeecd90e8474eb01fad0f55eb60b4ebdbfe64369e50de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f67622d742d323635392e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2659)[![Build Status](https://camo.githubusercontent.com/646d2e997e7f3b6aab2172e3f9b14da88a487afdc9ed3c11f92a4fa569859ad5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652d636f6e747269622f7068702d6d6f6e6f7265706f2f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/tourze-contrib/php-monorepo/actions)[![Coverage Status](https://camo.githubusercontent.com/b53672ac612e3b7962baa45ef3f3d5a60a11720bbd6620f2e049146a2ca4ef00/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652d636f6e747269622f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze-contrib/php-monorepo)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A PHP implementation of GB/T 2659 country and region codes (2-letter) based on PHP 8.1 enums.

Features
--------

[](#features)

- **Complete GB/T 2659 implementation**: All 249 countries and regions included
- **Type-safe enums**: Built on PHP 8.1 backed enums for maximum type safety
- **Bilingual support**: Chinese labels with English documentation
- **Form integration**: Ready-to-use with dropdown lists and form components
- **Extensible**: Implements `Labelable`, `Itemable`, and `Selectable` interfaces
- **Utility methods**: Lowercase conversion, array transformation, and more

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

[](#installation)

**Requirements:**

- PHP &gt;= 8.1
- `tourze/enum-extra` package

Install via Composer:

```
composer require tourze/gb-t-2659
```

Quick Start
-----------

[](#quick-start)

```
