PHP code example of evozon-php / easy-cron-deployment-bundle
1. Go to this page and download the library: Download evozon-php/easy-cron-deployment-bundle 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/ */
evozon-php / easy-cron-deployment-bundle example snippets
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new MadrakIO\EasyCronDeploymentBundle\MadrakIOEasyCronDeploymentBundle(),
);
// ...
}
// ...
}
bash
$ composer
yaml
madrak_io_easy_cron_deployment:
jobs:
-
minute: 0
hour: 0
day: 1
month: 1
task: 'php somescript.php'
hosts: ['node-1', 'node-2']
disabled: true
-
minute: 0
task: 'php someotherscript.php'