hatamiarash7 / jdf
JDF Library for Laravel
Fund package maintenance!
Ko Fi
yekpay.me/hatamiarash7
idpay.ir/hatamiarash7
Requires
- php: ^7.0
- illuminate/support: ^5.5|^6|^7
Requires (Dev)
- orchestra/testbench: ^3.5
- phpunit/phpunit: ^7.0
Suggests
- laravel/framework: Required for testing (~5.8).
- phpunit/phpunit: Allow to use PHPUnit for testing (~7.0).
This package is auto-updated.
Last update: 2024-11-20 23:54:53 UTC
README
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
Support
Contributing
- Fork it !
- Create your feature branch :
git checkout -b my-new-feature
- Commit your changes :
git commit -am 'Add some feature'
- Push to the branch :
git push origin my-new-feature
- Submit a pull request :D
Issues
Each project may have many problems. Contributing to the better development of this project by reporting them.