crawdance / iran-events
A simple package to check Iran holidays and events using Jalali Calendar
dev-main
2022-02-25 10:08 UTC
Requires
- alkoumi/laravel-hijri-date: ^1.0
- nesbot/carbon: ^2.16
This package is auto-updated.
Last update: 2025-03-25 17:02:55 UTC
README
A simple package to check Iran holidays and events using Jalali Calendar.
Installation
You can install the package via composer:
composer require crawdance/iran-events
Add this line in your app.php file if your laravel version is below 5.6:
'providers' => [ ... CrawDance\IranEvents\Providers\IranEventsServiceProvider::class, ... ];
Usage:
return IranEvents::Check('1408-12-29');
The result is:
array:3 [▼ "holiday" => true "type" => "تقویم خورشیدی" "desc" => "روز ملي شدن صنعت نفت ايران" ]
Hijri Events:
return IranEvents::Check('1408-4-13');
array:3 [▼ "holiday" => true "type" => "تقویم قمری" "desc" => "اربعين حسيني" ]
This package requires laravel-hijri-date and Carbon to convert Jalali inserted date to Ummul Qura Hijri and Gregorian.
Issues
If you find a bug while using this package , please open an issue about the bug also affects ... and, unless it is obvious, the reason why you think the current result is wrong.
License
The MIT License (MIT).