alkoumi/laravel-arabic-tafqeet
Composer 安装命令:
composer require alkoumi/laravel-arabic-tafqeet
包简介
a package to translate money numbers to our Amazing 💝 Arabic language TAFQEET . to look like [فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير]
README 文档
README
Recommendations!!! 🥰 Please try alkoumi/laravel-arabic-numbers 🤩 instead.
Laravel package to translate money numbers to our Amazing 💝 Arabic language TAFQEET . to look like [فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير]
[Otherwise]
Installation to All Laravel Versions 🥳
You can install the package via composer:
composer require alkoumi/laravel-arabic-tafqeet
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [
// ...
Alkoumi\LaravelArabicTafqeet\LaravelArabicTafqeetServiceProvider::class,
];
Usage
Simply pass amount as Number to the method Tafqeet::inArabic($amount,'usd')
the default currency is SAR you can change it by pass the currency with the $amount Tafqeet::inArabic($amount,'usd')
supporing most of arabic currencies same => sar , egp , kwd extra...
use Alkoumi\LaravelArabicTafqeet\Tafqeet; // Default currency is sar $amount = App\cheque::first()->money; $tafqeetInArabic = Tafqeet::inArabic($amount); // Result => "فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير"
use Alkoumi\LaravelArabicTafqeet\Tafqeet; // change currency $amount = App\cheque::first()->money; $tafqeetInArabic = Tafqeet::inArabic($amount,'egp'); // Result => "فقط تسعمائة ألف جنيه و أربعة و ثلاثون قرش لاغير"
Give Me 💗 Cup of ☕️ Coffee here https://patreon.com/mohammadelkoumi
统计信息
- 总下载量: 14.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-19
