1. Go to this page and download the library: Download tkstarir/tkstarjdc 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/ */
tkstarir / tkstarjdc example snippets
use \TkStar\LaunchPad\Components as Component;
echo(join('-', Component\TkStarJDC::JalaliToGregorian(1378, 11, 16))); // Result => 2000-2-5
echo(strtotime(join('-', Component\TkStarJDC::JalaliToGregorian(1378, 11, 16)))); // Result => 949705200
echo(join('/', Component\TkStarJDC::GregorianToJalali(2000, 02, 05))); // Result => 1378/11/16
$array = Component\TkStarJDC::JalaliToGregorian(1378, 11, 16)); // Result => Array ( year, month, day )
$array = Component\TkStarJDC::GregorianToJalali(2000, 02, 05)); // Result => Array ( year, month, day )
use \TkStar\LaunchPad\Components as Component;
$array = Component\TkStarJDC::Occasions('2000-02-05', 'gregorian'); // Result => Array ( ... )
$array = Component\TkStarJDC::Occasions('2000/02/05', 'gregorian'); // Result => Array ( ... )
use \TkStar\LaunchPad\Components as Component;
$array = Component\TkStarJDC::Occasions('1378-11-16', 'jalali'); // Result => Array ( ... )
$array = Component\TkStarJDC::Occasions('1378/11/16', 'jalali'); // Result => Array ( ... )