2017 © Pedro Peláez
 

library arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

image

maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

  • Sunday, October 15, 2017
  • by maherbusnes
  • Repository
  • 3 Watchers
  • 35 Stars
  • 2,875 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 10 Versions
  • 4 % Grown

The README.md

ArabicDateTime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel ., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads StyleCI, (*2)

Installation

Composer

Add Laravel ArabicDateTime to your composer.json file., (*3)

    composer require maherelgamil/arabicdatetime

Run composer install to get the latest version of the package., (*4)

Laravel 5.* only

ArabicDateTime comes with a service provider for Laravel 4. You'll need to add it to your composer.json as mentioned in the above steps, then register the service provider with your application., (*5)

Open app/config/app.php and find the providers key. Add Arabicdatetime\ArabicdatetimeServiceProvider to the array., (*6)

    ...
    Maherelgamil\Arabicdatetime\ArabicdatetimeServiceProvider::class
    ...

You can also add an alias to the list of class aliases in the same app.php, (*7)

    ...
    'Arabicdatetime'    => Maherelgamil\Arabicdatetime\Facades\Arabicdatetime::class
    ...

Now . publish vendor, (*8)

    php artisan vendor:publish

Useage

Get date from unixtime


//$arabDateTime->date({unixtime} , {mode} , {schema} , {numericMode}); //This function take 4 Parameters : //1- unixtime : ex '1418123530' //2- mode : 0 for Arabic date 1 for Hijri date //3- schema : as `php` schema , you can read this page for more info. : http://php.net/manual/en/function.date.php //4- numericMode takes two types 'indian' or 'arabic' and 'arabic' is default //5 - Create a Arabicdatetime instance $arabDateTime = new Arabicdatetime(); //for Gregorian date with Englsih numbers $arabDateTime->date(1418123530 , 0); //for Hijri date with indian numbers $arabDateTime->date(1418123530 , 1 , 'd / m / y ' ,'indian'); //for Hijri date, there is an optional correction, You can add or subtract days with plus and minus $arabDateTime->setCorrection('+1'); $arabDateTime->setCorrection('-1');

Get Days with locale language

    $arabDateTime->getDays();

Get Arabic Days

    $arabDateTime->getArabicDays();

Get Months With locale language

    $arabDateTime->getMonths();

Get Arabic Months

    $arabDateTime->getArabicMonths();

Get Hijri Months with locale language

    $arabDateTime->getHijriMonths();

Get Hijri Months

    $arabDateTime->getArabicHijriMonths();

Get remainnig time

    $arabDateTime->remainingTime(1418123530);

Get left time

    $arabDateTime->leftTime(1418123530);

Get left or remaining time

    $arabDateTime->leftRemainingTime(1418123530);

License

ArabicDateTime is an open-sourced laravel package licensed under the MIT license, (*9)

The Versions

15/10 2017

dev-master

9999999-dev https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

  Sources   Download

MIT

The Requires

 

laravel php date arabic time hijri maherelgamil buzzylab

18/09 2015

4.0.2

4.0.2.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

  Sources   Download

MIT

The Requires

 

laravel php date arabic time hijri maherelgamil weeby

16/09 2015

4.0.1

4.0.1.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

  Sources   Download

MIT

The Requires

 

laravel php date arabic time hijri maherelgamil weeby

15/09 2015

4.0.0

4.0.0.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to generate arabic or hijri date with multi-language support for laravel

  Sources   Download

MIT

The Requires

 

laravel php date arabic time hijri maherelgamil weeby

14/09 2015

3.0.2

3.0.2.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel >= 5.1.0

  Sources   Download

MIT

The Requires

 

laravel php date arabic time maherelgamil weeby

20/06 2015

3.0.1

3.0.1.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel >= 5.1.0

  Sources   Download

MIT

The Requires

 

laravel php date arabic time maherelgamil weeby

07/02 2015

2.0.1

2.0.1.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel 4 & 5

  Sources   Download

MIT

The Requires

 

laravel php date arabic time

07/02 2015

2.0.0

2.0.0.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel 4 & 5

  Sources   Download

MIT

The Requires

 

laravel php date arabic time

07/02 2015

1.0.2

1.0.2.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel 4

  Sources   Download

MIT

The Requires

 

laravel php date arabic time

25/01 2015

1.0.1

1.0.1.0 https://github.com/maherelgamil/arabicdatetime

Easy and useful tool to get arabic date with arabic characters for laravel 4

  Sources   Download

MIT

The Requires

 

laravel php date arabic time