定制 narokishi/number-to-words 二次开发

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

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

narokishi/number-to-words

Composer 安装命令:

composer require narokishi/number-to-words

包简介

PHP package to transform numbers into words

README 文档

README

Build Coverage Downloads Release License
Build Status Coverage Status Total Downloads Latest Stable Version License

Description

"NumberToWords" is a PHP package, which transform numbers (as float) to human-friendly written value with currency.

Installation

Composer

Installing via Composer will keep this package up to date for you.

composer require narokishi/number-to-words

Usage

use Narokishi\NumberToWords\NumberTransformer;

...

Transformer::make()
    ->setLanguage('PL') // Language
    ->toWords(172.05, 'PLN') // Value, currency

Contributing

Thank you for considering contributing to the package.

Running tests

composer tests
composer tests-windows

Submitting a Patch

  • Fork the Repository
  • After the action has completed, clone your fork locally
git clone git@github.com:{username}/number-to-words.git
cd number-to-words
git remote add upstream git://github.com/narokishi/number-to-words.git
  • Check that tests pass
  • Create and work on your own topic branch
git checkout -b {branch} master
  • Prepare your patch (while rebasing you might have to resolve conflicts)
git checkout master
git fetch upstream
git merge upstream/master
git checkout BRANCH_NAME
git rebase master
  • In case of conflicts
 git add {files}
 git rebase --continue
  • Check that all tests pass and push your branch
 git push origin {branch} --force
  • Make a Pull Request on narokishi/number-to-words repository

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固