mndco/iranian-holidays

Investigating the closure of a special day in Iran

1.1402 2023-07-11 22:37 UTC

This package is not auto-updated.

Last update: 2024-03-22 01:14:50 UTC


README

Checks whether a certain date in Iran is an official holiday or not

installation

composer require mndco/iranian-holidays

usage

<?php
include "vendor/autoload.php";

use MNDCo\IranianHoliday\IranianHoliday;

$holiday = new IranianHoliday();
$date = "1399-07-26";
if($holiday->checkIsHoliday($date))
    var_dump($holiday->getHolidayTitle($date));

Credits

The source of information of this package is the website of the Calendar Center of the Institute of Geophysics, University of Tehran ( Calendar.ut.ac.ir )

License

The MIT License (MIT). Please see License File for more information.