1. Go to this page and download the library: Download laborci/valentine-date 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/ */
laborci / valentine-date example snippets
modify($modify): $this;
// http://php.net/manual/en/datetime.modify.php
add(int $year = 0, int $month = 0, int $day = 0, int $week = 0): $this;
sub(int $year = 0, int $month = 0, int $day = 0, int $week = 0): $this;
// adds and subtracts years, months, days, weeks from/to the current date
setDate($year = null, $month = null, $day = null): $this
setWeek($week = null, $day = null, $year = null): $this;
// if any argument’s value is null, it refers the current year, day, week, month
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.