PHP code example of plinker / tasks
1. Go to this page and download the library: Download plinker/tasks 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/ */
plinker / tasks example snippets php
$client->tasks->create(
'Hello World',
' echo "Hello World";',
'php',
'My Hello World task',
[]
)
php
$client->tasks->update(
1
'Hello World',
' echo "Hello World - Updated";',
'php',
'My Hello World task',
[]
)
php
$client->tasks->get('Hello World');
php
$client->tasks->getById(1);
php
$client->tasks->getTaskSources();
php
$client->tasks->status('Hello World');
php
$client->tasks->runCount('Hello World');
php
$client->tasks->remove('Hello World');
php
$client->tasks->removeById(1);
php
$result = $client->tasks->getTasksLog();
php
$result = $client->tasks->getTasksLogCount();
php
$result = $client->tasks->removeTasksLog(1);
php
$result = $client->tasks->getTasks();
php
// run once
$client->tasks->run('Hello World', [], 0);
// run every day
$client->tasks->run('Hello World', [], 86400);
php
$client->tasks->runNow('Hello World');
php
$result = $client->tasks->clear();
php
$result = $client->tasks->reset();