承接 hnhdigital-os/php-number-converter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hnhdigital-os/php-number-converter

最新稳定版本:1.2.0

Composer 安装命令:

composer require hnhdigital-os/php-number-converter

包简介

Number to word, roman, ordinal converter

README 文档

README

This package provides the ability to convert a numerical number to a word, roman numeral, or include the ordinal suffix.

Latest Stable Version Total Downloads Latest Unstable Version License

Build Status StyleCI Test Coverage Issue Count Code Climate

This package has been forked from saintkabyo/number-converter and further developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Install

Via composer:

$ composer require hnhdigital-os/php-number-converter

Usage

Convert to word

Supported number range -2147483647 to 2147483647.

use HnhDigital/PhpNumberConverter;

echo (new NumberConverter())->word(1);
one

Convert to roman

Supported number range 1 to 3999.

use HnhDigital/PhpNumberConverter;

echo (new NumberConverter())->roman(1);
I

Ordinal (word + suffix)

Supported number range 1 to 2147483647.

use HnhDigital/PhpNumberConverter;

echo (new NumberConverter())->wordOrdinal(1);
first

Ordinal (number + suffix)

Supported number range 1 to 2147483647.

use HnhDigital/PhpNumberConverter;

echo (new NumberConverter())->numberOrdinal(1);
1st

Frameworks

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 192.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-08