fasamr/indrupee
最新稳定版本:1.0
Composer 安装命令:
composer require fasamr/indrupee
包简介
Converts a number to Indian Rupee Format
README 文档
README
Converts number to Indian Rupee Format. In Words, In Crores, In Lakhs, With Indian Commas, To other Fiat Currency and Crypto Currency
Installation
composer require fasamr/indrupee
Usage
Create an instance
<?php $rupee = new \IndRupee\IndRupee(); ?>
Examples
<?php echo $rupee->inwords(51111111.88); // Five Crore Eleven Lakhs Eleven Thousands One Hundred and Eleven Rupees Eight Eight Paise
<?php $echo $rupee->withcomma(51111111.88,1); // will return 5,11,11,111.88, if you want rupee symbol prefix (₹) add second parameter as 1 or 0
<?php echo $rupee->incrores(50222587.689,2,1); // will return 5.02 Crores, 2nd parameter '2' defines number of decimal points needed, //3rd parameter adds prefix (₹) when 1 or 0
<?php echo $rupee->inlakhs(90222587,2,0); // will return 902.23 Lakhs, 2nd parameter for number of decimal points, 3rd for inr symbol prefix
<?php echo $rupee->fiatconvert("USD","INR",1); // will return 74.38
<?php echo $rupee->cryptoconvert("INR","BTC",1); // will return 2796810.45
<?php echo $rupee->inwords($rupee->cryptoconvert("INR","BTC",1)); // will return Twenty Seven Lakhs Ninety Six Thousands Eight Hundred and Ten Rupees Four Five Paise
统计信息
- 总下载量: 84
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-23