PHP code example of gcgov / framework-service-gcgov-cron-monitor

1. Go to this page and download the library: Download gcgov/framework-service-gcgov-cron-monitor 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/ */

    

gcgov / framework-service-gcgov-cron-monitor example snippets


	public function registerFrameworkServiceNamespaces(): array {
		return [
			'\gcgov\framework\services\cronMonitor'
		];
	}
    

$cronMonitor = new \gcgov\framework\services\cronMonitor\cronMonitor( $cronJobId );
//perform long running cron task
$cronMonitor->end();