hekmatinasser/notowo
Composer 安装命令:
composer require hekmatinasser/notowo
包简介
This Package helps developers change number to word for all language on Laravel freamwork PHP
README 文档
README
-
This package compatible with Laravel
>=5&<= 8.0 -
notowo is package for change number to word
Run the Composer update comand
$ composer require hekmatinasser/notowo
In your config/app.php add Hekmatinasser\Notowo\NotowoServiceProvider::class, to the end of the providers array and add 'Notowo' => Hekmatinasser\Notowo\Notowo::class, to the end of the alias array.
'providers' => [ ... Hekmatinasser\Notowo\NotowoServiceProvider::class, ], 'alias' => [ ... 'Notowo' => Hekmatinasser\Notowo\Notowo::class, ]
Basic Usage
Notowo
You can use Notowo in project
use Notowo;
Constructors
return notowo('125000'); // one hundred and twenty and five thousand return new Notowo('125000'); // one hundred and twenty and five thousand return Notowo::parse(125000); // one hundred and twenty and five thousand //max 39 digit return notowo('653484112849950468404684114841147284520', 'fa'); ششصد و پنجاه و سه دسیلیون و چهارصد و هشتاد و چهار نونیلیون و صد و دوازده اکتریلیون و هشتصد و چهل و نه سپتریلیون و نهصد و پنجاه سکستریلیون و چهارصد و شصت و هشت کوینتریلیون و چهارصد و چهار کادریلیون و ششصد و هشتاد و چهار تریلیون و صد و چهارده بیلیون و هشتصد و چهل و یک میلیارد و صد و چهل و هفت میلیون و دویست و هشتاد و چهار هزار و پانصد و بیست
Localization
return new Notowo('125000', 'fa'); // صد و بیست و پنج هزار $w = notowo('125000'); return $w->setLang('fa'); // صد و بیست و پنج هزار return $w->getLang(); // fa return $w->resetLang(); // one hundred and twenty and five thousand
Currency
$w = Notowo::parse(125000, 'fa'); return $w->currency(); // صد و بیست و پنج هزار ریال return $w->currency('تومان'); return $w->setCurrency('تومان'); return $w->getCurrency(); // تومان return $w->resetCurrency(); // صد و بیست و پنج هزار
License
- This package was created and modified by Nasser Hekmati for Laravel >= 5 and is released under the MIT License.
hekmatinasser/notowo 适用场景与选型建议
hekmatinasser/notowo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 526.97k 次下载、GitHub Stars 达 32, 最近一次更新时间为 2017 年 06 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「word」 「number」 「laravel」 「n2w」 「Notowo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hekmatinasser/notowo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hekmatinasser/notowo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hekmatinasser/notowo 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A package for working with arbitrary precision numbers in Laravel.
Gambling Algorithms for Certification.
Unofficial port of the Carbone API SDK to Saloon v3
Validates Turkish National Identification Number
Generate random words and sentences with ease in PHP.
Convert number (string format) between base 2 and 62
统计信息
- 总下载量: 526.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 32
- 点击次数: 23
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-27