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

ActiveLibrary

tourze/gb-t-4762
================

GB/T 4762 政治面貌代码

0.0.3(11mo ago)07MITPHPPHP ^8.1CI passing

Since Mar 24Pushed 5mo ago1 watchersCompare

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

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

GB/T 4762 Political Affiliation Codes
=====================================

[](#gbt-4762-political-affiliation-codes)

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

[![Latest Version](https://camo.githubusercontent.com/0c125fea049244f869d5e7a1242cd25b3412a773232e29805d198eb1fcfe5ee7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f67622d742d343736322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-4762)[![Quality Score](https://camo.githubusercontent.com/7431f555a2f6cf60524fcb84a823436260b906e461d5967d3e78eea6f1a63677/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f75727a652f67622d742d343736322e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tourze/gb-t-4762)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/7afa2d65b0fcfd3692d86787012d81defdd58878229f83c91c1d236dd46655f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f67622d742d343736322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-4762)

A PHP implementation of the GB/T 4762-1984 Political Affiliation Codes standard. This package provides a standardized enum for political affiliation classifications suitable for information processing, data exchange, and management systems.

Features
--------

[](#features)

- Standard-compliant political affiliation enum based on GB/T 4762-1984
- Convenient methods for code retrieval, labeling, and option generation
- Full support for form dropdowns and data validation scenarios
- Environment-controlled option visibility for different display requirements
- Comprehensive test coverage ensuring data integrity

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

[](#installation)

**Requirements:**

- PHP 8.1 or higher
- tourze/enum-extra ^0.1.0

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

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

[](#quick-start)

```
