定制 alkoumi/laravel-arabic-tafqeet 二次开发

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

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

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

License Latest Stable Version Total Downloads Scrutinizer Code Quality Code Intelligence Status

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

Tafqeet

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

GitHub 信息

  • Stars: 31
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-19