2.0.2 2020-05-02 13:33 UTC

This package is auto-updated.

Last update: 2020-06-02 13:36:22 UTC


README

Latest Stable Version Total Downloads License FOSSA Status

It's a simple library to use Persian timestamps in Laravel ( 5.5+ / 6 / 7 )

Install

composer require hatamiarash7/jdf

Laravel 5.5+ has auto-discover ability and you don't need add anything to project's configuration

How to use

use Hatamiarash7\JDF\Generator;

...

$jdf = new Generator();
$date = $jdf->getTimestamp(); // Output : ۱۳۹۷/۱۱/۰۲ - ۰۰:۳۸

$finalDate = $jdf->jdate_words(['ss'=>1390, 'mm'=>5, 'rr'=>20]);
// Output : [
		'ss' => 'هزار و سیصد و نود' ,
		'mm' => 'مرداد' ,
		'rr' => 'بیست'
	    ]

License

FOSSA Status