2.0.2 2020-05-02 13:33 UTC

README

Latest Stable Version Total Downloads License FOSSA Status

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

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

Support

ko-fi

68747470733a2f2f63646e2e70617970696e672e69722f737461746963732f50617970696e672d6c6f676f2f54727573742f626c75652e737667

Contributing

  1. Fork it !
  2. Create your feature branch : git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request :D

Issues

Each project may have many problems. Contributing to the better development of this project by reporting them.