定制 chitwarnold/n2w 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

chitwarnold/n2w

Composer 安装命令:

composer require chitwarnold/n2w

包简介

PHP Library for Spelling Numbers into Words. Give it an integer value like 50, and it returns the words Fifty

README 文档

README

This library will allows you to spell various numeric values from 0 to 999,999,999,999.00 in the various languages. For now the library is only supporting the English Language. In the next few monts we hope to add support for Swahili,French, German, Spanish.

The library was prepared to help with displaying the spelling of various numbers when printing on cheques. Please highlight other use cases on the comments and submits any issues you get while using this library. Godspeed.

For license information check the LICENSE-file.

joke If only president Zuma has his speech writers using this class, the whole President Zuma ANC Numbers Challenge Would not have happenned.lol

You can also access some of my other repositories on my Packagist Profile.

Installation

The preferred way to install this library is through composer.

Either run

composer require chitwarnold/n2w

or add

"chitwarnold/ais": "~1.0.4",

to the require section of your composer.json.

Demonstration

#import the libraries
use chitwarnold\n2w\en\N2w;
use chitwarnold\n2w\en\readers\N2wReaders;


# get some spellcheck done
$_spelling_bee = new N2w();
$decimal_point  = 2;
$start = 100;
$stop = 200;
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++".PHP_EOL;
echo "| Range Counting challenge From $start to $stop |".PHP_EOL;
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++".PHP_EOL;


for($i = $start; $i <= $stop; $i++)
{
    $spell = $_spelling_bee->updateChallenge($i,$decimal_point)->spell();
    echo "$i."." ".$spell.PHP_EOL;
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD
  • 更新时间: 2017-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固