PHP code example of plinker / cron

1. Go to this page and download the library: Download plinker/cron 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 / cron example snippets

 php
$result = $client->cron->user();
 php
$result = $client->cron->crontab();
 text
# My Cron Task
0 * * * * cd ~
# \My Cron Task
 php
$result = $client->cron->dump();
 text
# My Cron Task
0 * * * * cd ~
# \My Cron Task
 php
$result = $client->cron->create('My Cron Task', '* * * * * cd ~');
 php
$result = $client->cron->get('My Cron Task');
 php
$result = $client->cron->update('My Cron Task', '0 * * * * cd ~');
 php
$result = $client->cron->delete('My Cron Task');
 php
$result =  $client->cron->drop();
 php
$result = $client->cron->apply();