PHP code example of fivesqrd / central
1. Go to this page and download the library: Download fivesqrd/central 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/ */
fivesqrd / central example snippets
use Fivesqrd\Central;
$job = Central\Factory::job($config)
->instance(self::class)
->start(array($this, '_execute'))
->save(strtotime('+ 30 days'));
use Fivesqrd\Central;
$job = Central\Factory::job($config)
->instance(self::class)
->lock()
->start(self::class, array($this, '_execute'))
->save(strtotime('+ 30 days'));