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

ActiveLibrary

tourze/gb-t-7408
================

GB/T 7408

0.0.1(11mo ago)00MITPHPPHP ^8.1CI passing

Since May 29Pushed 6mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

GB/T 7408
=========

[](#gbt-7408)

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

[![Latest Version](https://camo.githubusercontent.com/7d16d51eb9048ff765a6f4b317f5c52dffaca98ff6abfc6361968053b447a469/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f67622d742d373430382e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-7408)[![Quality Score](https://camo.githubusercontent.com/ddbb3de2df2f74cd4126a538ab928992bc6353c8c67623b45756502714a44ec0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f75727a652f67622d742d373430382e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tourze/gb-t-7408)[![Total Downloads](https://camo.githubusercontent.com/0f09c6be6ad745bb116da3550d19e4e5bae06c90b0daddd28549e078da24f1b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f67622d742d373430382e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/gb-t-7408)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A PHP package implementing GB/T 7408 standard for data elements and interchange formats - Information interchange - Representation of dates and times. This package provides a standardized way to handle weekday representations according to Chinese national standards.

Features
--------

[](#features)

- ✅ **Standards Compliant**: Implements GB/T 7408 national standard for date and time representation
- 🔢 **Numeric Values**: Uses standardized numeric values (01-07) for weekdays
- 🌐 **Localized Labels**: Provides Chinese labels for all weekdays
- 🚀 **Modern PHP**: Built with PHP 8.1+ enums for type safety
- 🔧 **Easy Integration**: Simple API for date and time related systems
- 📦 **Lightweight**: Minimal dependencies, only requires `tourze/enum-extra`

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- `tourze/enum-extra` package

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

[](#installation)

You can install the package via Composer:

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

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

[](#quick-start)

```
