Skip to content

seyyedam7/persian-cal-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Persian Calendar Events codecov Build Status

This package aims to provide events for Persian calendar (jalali) crawling time.ir and using morilog/jalali for conversion.

Features

  • Indicates holidays
  • Events in that day
  • Supports both jalali and gregorian
  • Indicates if an event is due to religious reasons

Installation

composer require seyyedam7/persian-cal-events

Usage

PersianCalEvent::jalali(1398, 1, 1);
/*
{
    "is_holiday": true,
    "events": [
        {
            "description": "جشن نوروز/جشن سال نو",
            "additional_description": "",
            "is_religious": false
        }
    ]
} 
*/

PersianCalEvent::gregorian(2019, 8, 12);
PersianCalEvent::gregorian(new Carbon('2019-08-12'));
/*
{
    "is_holiday": true,
    "events": [
        {
            "description": "عید سعید قربان",
            "additional_description": "١٠ ذوالحجه",
            "is_religious": true
        }
    ]
}
*/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages