Download the PHP package mujibhalimi/pashto-calander-laravel without Composer
On this page you can find all versions of the php package mujibhalimi/pashto-calander-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pashto-calander-laravel
pashto-calander-laravel component:
This component based on PHP International (php-intl) extension. So this PHP extension must be installed on youe web server.
known as:
- Hijri Shami
- Jalali Date
- JDatetime
- هجری شمسی
- تقویم خورشیدی
php-intl extension installation
-
On windows servers, open your php.ini (which should be in Program Files/PHP), and simply uncomment the extension.
- Debian based Linux (Debian/Ubuntu/Mint/ ...)
-Redhat based Linux (Redhat/Centos/ ...)
Restart Webserver - done.
Composer Installation
Integration with Laravel 5.*
Add Pashto to app aliases in config/app.php file
Usage samples
Supported format documentation
// Jalali to Gregraian sample
echo Pashto::jTog('next week');
echo Pashto::jTog('now');
echo Pashto::jTog('1396-06-30 05:30:10');
echo Pashto::jTog ('۱۳۹۱/مرغومی/۱۲', 'yyyy/MM/dd H:m:s', 'ps', 'en', 'Asia/Kabul');
// Gregorian to Jalali samples
echo Pashto::gToj('2 days ago');
echo Pashto::gToj('2010-10-24 22:50:14');
echo Pashto::gToj('2014-09-21 07:12:54', 'EEEE yyyy/MMMM/dd H:m:s');
// moment samples
echo Pashto::moment(1494328806);
echo Pashto::moment(strtotime('3 hours ago'));
echo Pashto::moment(strtotime('2017-01-02 00:10:20'));
echo Pashto::momentEn(1494334506);
//in blader
{{ Pashto::gToj('2011-11-20 19:12:19') }}
All versions of pashto-calander-laravel with dependencies
PHP Build Version
Package Version
The package mujibhalimi/pashto-calander-laravel contains the following files
Loading the files please wait ....