recca/chinese-military-number
最新稳定版本:v13.0.0
Composer 安装命令:
composer require recca/chinese-military-number
包简介
將數字轉換成中文軍用數字
README 文档
README
將數字轉換成中文軍用數字
Support Spatie
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
安裝
You can install the package via composer:
composer require recca/chinese-military-number
使用
數字轉換
$chineseMilitaryNumber = new Recca\ChineseMilitaryNumber(); echo $chineseMilitaryNumber->format('0912'); // 洞勾么兩
時間轉換
$chineseMilitaryTime = new Recca\ChineseMilitaryTime(); $time = Carbon::create(2025, 1, 1, 9, 17, 0); echo $chineseMilitaryTime->fromCarbon($time); // 洞勾么拐
使用現在時間
// 假設現在時間 12:00 $chineseMilitaryTime = new Recca\ChineseMilitaryTime(); echo $chineseMilitaryTime->now(); // 么兩洞洞
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-03