定制 azul/numbers_words 二次开发

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

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

azul/numbers_words

Composer 安装命令:

composer require azul/numbers_words

包简介

Allows to use Numbers_Words library in symfony with : french, english ans spanish

关键字:

README 文档

README

This library allows you converts numbers to words with no intl php extension

Installation

Download Numbers_Words Library using composer

Add Numbers_Words by running the command:

$ php composer.phar require azul/numbers_words "dev-master"

Or by adding this line to your composer.json file And run composer.phar update

//
   "azul/numbers_words":"dev-master"
//

Composer will install the library to your project's vendor/azul directory.

Using Numbers_Words Library

Convert integer

<?php
// In Controller
$numbers_words = new Word();

$word = $numbers_words->toWords(12378 /**Number**/, 'en'/**locale**/)

// Output : twelve thousand three hundred seventy-eight
// Available locales : fr, en, es

Convert money ammount

<?php
// In Controller
$numbers_words = new Word();

$word = $numbers_words->toCurrency('123,56'/**Ammount**/, 'en'/**Locale**/, 'EUR'/**Currency**/, ','/**Decimal Point**/);

// Output : cent vingt-trois euros cinquante-six centimes
// Available locales : fr, en, es

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 57
  • 开发语言: PHP

其他信息

  • 授权协议: PHP-3.01
  • 更新时间: 2015-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固