Download the PHP package tourze/gb-t-3304 without Composer
On this page you can find all versions of the php package tourze/gb-t-3304. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package gb-t-3304
GB/T 3304
Introduction
This package implements the GB/T 3304-1991 standard "Names of nationalities of China in romanization with codes" as a type-safe PHP 8.1+ enum. It provides both numeric (01-56) and two-letter (HA-JN) codes for all 56 officially recognized Chinese ethnic groups, with convenient integration interfaces for modern PHP applications.
Features
- Full coverage of all 56 Chinese nationalities
- Provides numeric codes (01-56) and two-letter codes (HA-JN)
- Implements
Labelable
,Itemable
, andSelectable
interfaces for easy integration - Type-safe, robust enum implementation
- Simple API for code, label, and mapping conversion
- Well-tested with PHPUnit
Installation
Requirements:
- PHP >= 8.1
- Composer
- Dependency:
tourze/enum-extra ~0.0.5
Install via Composer:
Quick Start
Documentation
- API Reference
- See source code and tests for advanced usage
- All enums implement
Labelable
,Itemable
,Selectable
for flexible integration
Contributing
- Please submit issues or pull requests via GitHub
- Follow PSR-12 coding style
- Ensure all tests pass (
composer test
) - Add tests for new features
License
MIT License. See LICENSE for details.
Changelog
See CHANGELOG.md for release history and upgrade notes.
All versions of gb-t-3304 with dependencies
PHP Build Version
Package Version
The package tourze/gb-t-3304 contains the following files
Loading the files please wait ....