Skip to content

Laravel package to manage Jalali calendar with Carbon utilities

Notifications You must be signed in to change notification settings

FarhadShirmardi/jalali

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jalali

Latest Stable Version Total Downloads GitHub Actions

Add Jalali calendar utilities to Carbon.

Installation

$ composer require derakht/jalali

Usage

<?php

use derakht\Jalali\Jalali;

Jalali::parse('2022-01-01')->toJalaliDateString(); // 1400/10/11 
Jalali::parse('2022-01-01')->toJalaliDateTimeString(); // 1400/10/11 00:00:00

Jalali::parseJalali('1400/01/01')->toDateString(); // 2021-03-21
Jalali::parseJalali('1400/01/01')->addDay()->toDateString(); // 2021-03-22
Jalali::parseJalali('1400/06/31')->addJalaliMonth()->toJalaliDateString(); // 1400/07/30

About

Laravel package to manage Jalali calendar with Carbon utilities

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages