PHP code example of unetway / months-days
1. Go to this page and download the library: Download unetway/months-days 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/ */
unetway / months-days example snippets
`
use Unetway\MonthsDays\MonthsDays;
$days = new MonthsDays();
$res = $rates->getMonthByDays(60);
echo $res; // 2
`
use Unetway\MonthsDays\MonthsDays;
$months = new MonthsDays();
$res = $rates->getDaysByMonths(3);
echo $res; // 120