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

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

tourze/gb-t-2261
================

个人基本信息分类与代码 GB/T 2261 标准实现

1.0.0(6mo ago)03693MITPHPCI passing

Since Mar 24Pushed 6mo ago1 watchersCompare

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

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

GB/T 2261
=========

[](#gbt-2261)

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

[![Latest Version](https://camo.githubusercontent.com/ea6886ea3b954a9879c2090efb7b3a90390e92c09ea4e4ab5dc6adb3d52e8650/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f67622d742d323236312e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2261)[![Total Downloads](https://camo.githubusercontent.com/9d70b5adb18a3dbbf413dbb1a77b03b26cdb3cda511e00bb59434dcb89d429d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f67622d742d323236312e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2261)[![License](https://camo.githubusercontent.com/b7378fd1ef225cf0559ea810f5ab62ca4ef3d3de72b8fe207877577d9a648b73/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f67622d742d323236312e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2261)[![PHP Version Require](https://camo.githubusercontent.com/addc2db168d8439738c1bc030cb45b7e9edeabbff24ae9a5ab29a250714f064d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f67622d742d323236312e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-2261)[![Code Coverage](https://camo.githubusercontent.com/994d68acb2aadf1c3c7711ddcb3b30429246a6c05da9e601f62c3f932ac795a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](#)

GB/T 2261 is a Chinese national standard that specifies the classification and codes for personal basic information. This package provides PHP enums for various aspects of this standard.

Features
--------

[](#features)

- PHP 8.1+ enum implementation
- Type-safe and IDE-friendly
- Implements `Labelable`, `Itemable`, and `Selectable` interfaces
- Provides human-readable labels in Chinese
- Standards-compliant with GB/T 2261

Available Enums
---------------

[](#available-enums)

- `Gender` - Gender codes (GB/T 2261.1)
- `MaritalStatus` - Marital status codes (GB/T 2261.2)
- `HealthSimpleStatus` - Simple health status codes (GB/T 2261.3)
- `HealthFullStatus` - Full health status codes (GB/T 2261.4)
- `JobType` - Job type codes (GB/T 2261.5)

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

[](#installation)

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

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

[](#quick-start)

```
