src/Transformatika/Utility/Fn.php
public static function monthListBetweenDate($startDate, $endDate)
    {
		$output = [];
		$time   = strtotime($startDate);
		$last   = date('m-Y', strtotime($endDate));

		do {
		    $month = date('m-Y', $time);
		    $total = date('t', $time);

		    $output[] = [
		        'month' => $month,
		        'total' => $total,
		    ];

		    $time = strtotime('+1 month', $time);
		} while ($month != $last);
    }
public static function monthListBetweenDate($startDate, $endDate)
    {
		$output = [];
		$time   = strtotime($startDate);
		$last   = date('m-Y', strtotime($endDate));

		do {
		    $month = date('m-Y', $time);
		    $total = date('t', $time);

		    $output[] = [
		        'month' => $month,
		        'total' => $total,
		    ];

		    $time = strtotime('+1 month', $time);
		} while ($month != $last);
    }
public static function monthListBetweenDate ( $ startDate , $ endDate ) { $ output = [ ] ; $ time = strtotime ( $ startDate ) ; $ last = date ( 'm-Y' , strtotime ( $ endDate ) ) ; do { $ month = date ( 'm-Y' , $ time ) ; $ total = date ( 't' , $ time ) ; $ output [ ] = [ 'month' => $ month , 'total' => $ total , ] ; $ time = strtotime ( '+1 month' , $ time ) ; } while ( $ month != $ last ) ; }
Get Month List And Month Total
@param  Date
@param  Date
@return Array
Get Month List And Month Total