PHP code example of mlk9 / persia-calendar
1. Go to this page and download the library: Download mlk9/persia-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/ */
mlk9 / persia-calendar example snippets
use MLK9\PCalendar;
var_dump(PCalendar::Today()); //get toady events ; return array(object) ;
// var_dump(PCalendar::Time(date("U", mktime(0, 0, 0, 1, 1, 2021)))); //get custom time events ; return array(object) ;
// var_dump(PCalendar::IsHoliday()); //is holiday -> toady or custom time ; return (boolean) ;