Use the below code to run cron on the last day of the month in PHP
$commands = '30 23 '.date('t').''.date('n').' *';
Use the below code to run cron on the last day of the month in PHP
$commands = '30 23 '.date('t').''.date('n').' *';