crazycodr/roman
最新稳定版本:1.0.1
Composer 安装命令:
composer require crazycodr/roman
包简介
Provides a simple decimal/roman number converter
README 文档
README
Roman is a simple library to convert numbers from decimal to roman and vice versa.
Usage
$converter = new CrazyCodr\Converters\Roman(); $roman = $converter->toRoman(4999); //Outputs MMMMCMXCIX $number = $converter->fromRoman('MMMMCMXCIX'); //Outputs 4999
System Requirements
You need PHP >= 5.0 although you should be using at least PHP >= 5.6 by now!
Note that this library is only tested against PHP 5.6, 7.0 and HHVM but should work in any version!
Install
Install Roman using Composer.
$ composer require crazycodr/roman
Testing
Roman has a PHPUnit test suite and a coding style compliance test suite using PHP CS Fixer. To run the tests, run the following command from the project folder.
$ composer test
License
The MIT License (MIT). Please see LICENSE for more information.
统计信息
- 总下载量: 88.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-18