1. Go to this page and download the library: Download 10quality/php-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/ */
10quality / php-calendar example snippets
use TenQuality\Utility\Calendar;
$calendar = new Calendar();
$calendar->build();
// Example
$data = array();
$data[] = $obj; // Either ARRAY or OBJECT
$calendar = new Calendar();
$calendar->data = $data;
// Array column or object filed containing the date related to each data row
$calendar->dataDateFiled = 'dateCreated';
// Build
$calendar->build();
$calendar = new Calendar('2017-01-25');
$calendar->build();
$calendar = new Calendar('2017-01-25');
$calendar->nextMonthDate;
$calendar->prevMonthDate;
bash
composer
html
<table>
<thead>
<tr>
foreach ($calendar->headers as $header) :
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.