PHP code example of omalizadeh / laravel-jalali-calendar

1. Go to this page and download the library: Download omalizadeh/laravel-jalali-calendar library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

omalizadeh / laravel-jalali-calendar example snippets


    use Omalizadeh\JalaliCalendar\JalaliCalendar;

    $jalaliDate = JalaliCalendar::fromGregorian('2020-05-24');

    use Omalizadeh\JalaliCalendar\JalaliCalendar;

    $jalaliDates = JalaliCalendar::fromGregorianPeriod('2020-05-24', '2020-05-28');