PHP code example of calendarific / php-calendarific
1. Go to this page and download the library: Download calendarific/php-calendarific 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/ */
calendarific / php-calendarific example snippets
$key = 'api-key-123';
$country = 'GB';
$year = 2019;
$month = null;
$day = null,
$location = null,
$types = ['national'];
$dates = Calendarific::make(
$key,
$country,
$year,
$month,
$day,
$location,
$types
);
shell
$ composer