1. Go to this page and download the library: Download marsapp/datetimehelper 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/ */
marsapp / datetimehelper example snippets
use marsapp\helper\datetime\DatetimeHelper;
isDate($date) : Bool
if (DatetimeHelper::isDate('2019-01-15)) {
die('Date format error');
}