/laravel-arabic-tafqeet

Laravel package to translate money numbers to our Amazing 💝 Arabic language TAFQEET . to look like [فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير]

Primary LanguagePHPMIT LicenseMIT

Laravel Arabic Tafqeet تفقيط الأرقام باللغة العربية

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

Laravel package to translate money numbers to our Amazing 💝 Arabic language TAFQEET . to look like [فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير]

Installation Up to Laravel 6

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)

	$amount = App\cheque::first()->money;
	$tafqeetInArabic = Tafqeet::inArabic($amount);
        // Result => "فقط تسعمائة ألف ريال و أربعة و ثلاثون هللة لاغير"