mohamedsabil83 / laravel-hijrian
Hijri-Gregorian date converter for Laravel
Fund package maintenance!
mohamedsabil83
paypal.me/technolizer
Installs: 12 858
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 4
Open Issues: 2
Requires
- php: ^8.1
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.2
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.0|^8.0
- orchestra/testbench: 8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^10.0|^11.0
- spatie/laravel-ray: ^1.26
README
This is a Hijri-Gregory date converter for Laravel 5.8+. It's return a date instance of carbon, so, you can make any process related to it.
Installation
You can install the package via composer:
composer require mohamedsabil83/laravel-hijrian
Usage
Don't forget to add use Hijrian;
at the top of your file.
Get Hijri date
Hijrian::hijri()
Get Gregory date
Hijrian::gregory()
Convert to Hijri
Hijrian::hijri($gregory_date)
Convert to Gregory
Hijrian::gregory($hijri_date)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.