Giter Site home page Giter Site logo

hussainabuhajjaj / laravel-arabic-tafqeet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alkoumi/laravel-arabic-tafqeet

0.0 0.0 0.0 56 KB

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

License: MIT License

PHP 100.00%

laravel-arabic-tafqeet's Introduction

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

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

laravel-arabic-tafqeet's People

Contributors

alkoumi avatar scrutinizer-auto-fixer avatar muhammedalkhudiry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.