1. Go to this page and download the library: Download dzava/calendar-month 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/ */
dzava / calendar-month example snippets
use Dzava\CalendarMonth\Month;
new Month(); // current month
new Month(5); // may of current year
new Month(5, 2019); // may of 2019
use Dzava\CalendarMonth\Month;
$month = new Month(5, 2018);
$days = $month->days();
// array(31) {
// [0] => class Carbon\Carbon {} // 2018-05-01
// ...
// [30] => class Carbon\Carbon {} // 2018-05-31
// }