alifti/jdf
Persian Jalali date for laravel , This package provide all methods that you need for shamsi/jalali date
437
| Install | |
|---|---|
composer require alifti/jdf:dev-main |
|
| PHP: | >=5.3.0 |
| License: | Apache-2.0 |
| Last Updated: | Sep 21, 2021 |
| Links: | GitHub · Packagist |
Maintainer: ali_fattahi
DEPRICATED - DONT USE THIS LIBRARY
alifattahi/jdf
Laravel 4 Persian jalali date
Installation
In the require key of composer.json file add the following
"alifti/jdf": "dev-master"
Run the Composer update comand
$ composer update
In your config/app.php add 'Alifti\jdf\jdfServiceProvider' to the end of the $providers array
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'Alifti\Jdf\JdfServiceProvider',
),
Basic Usage
Examples
Some Examples (based on examples provided by Sallar)
// Current date time
$date = jdf::jdate('H:i:s Y/m/d');
// current date time in unix time format
$date = jdf::jmktime();
// or create your jalali unix tiem format
$date = jdf::jmktime($h,$m,$s,$jm,$jd,$jy);
Persian guide for all methods in this package : Persian guide
License
- This package is created based on jdf
- Jalali (Shamsi) DateTime class included in the package is created by [Ali Fattahi] and is released under the MIT License.
- This package was created by [Ali Fattahi] and is released under the MIT License.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
648,266,899
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
429,221,767
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
403,217,078
4,664