3li3bdalla/tafqeet
最新稳定版本:4.0.1
Composer 安装命令:
composer require 3li3bdalla/tafqeet
包简介
convert numbers into arabic words
README 文档
README
😎 What Is Tafqeet
Tafqeet is php script that help you to integrate payments and receipts document inside your project by convert amout into arabic words , it help you to add this words to any thing you want
⬇️ Installtion
very easy just use composer to get it
$ composer require 3li3bdalla/tafqeet
now everything is ready to work
🔨 Uses
<?php use AliAbdalla\Tafqeet\Core\Tafqeet; $arablic = Tafqeet::arablic(900000.34); echo $arablic;
you should get result like that
فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير
also you can specify currency in socend param defult is sar
Tafqeet::arablic(30, 'usd');
here we spacify the currency you can put any other currecnry as you want like sdg
also you can add new currency
just open src/core/Tafqeet.php
you will see this code
public $config = [ 'connection_tool' => ' و', 'default_currency' => 'sar', 'starter'=>'فقط', 'end'=>'لاغير', 'currencies' => [ 'sar' => [ 'main1'=>'ريال', 'main2'=>'ريالاً', 'single'=>'هللة', 'multi'=>'هللات' ], 'sdg' => [ 'main1'=>'قرش', 'main2'=>'قرشاً', 'single'=>'قرش', 'multi'=>'قروش' ], 'usd' => [ 'main1'=>'دولار', 'main2'=>'دولاراً', 'single'=>'سنت', 'multi'=>'سنت' ], ], ];
add any currecny you want to currencies array
🧐 Note
this script work untill 999999.99
统计信息
- 总下载量: 1.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2019-09-23