PHP code example of plateau / automaton

1. Go to this page and download the library: Download plateau/automaton 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/ */

    

plateau / automaton example snippets


'providers' => array(
	...
	'Plateau\Automaton\AutomatonServiceProvider',
);

	'Automaton' => 'Plateau\Automaton\AutomatonFacade',
);

php composer.phar update

php artisan migrate --package=plateau/automaton

* * * * * php /var/www/laravel-app/artisan automaton:run >/dev/null 2>&1

// Parameters are accessible from the task object as $this->parameters
$parameters = array('key' => 'value');

$myTask = new MyTask;
$myTask->init($parameters);

Automaton::schedule($myTask, '2014-02-17 12:00:00');