PHP code example of blitz-php / tasks

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

    

blitz-php / tasks example snippets

 
php klinge publish
 
// app/Config/tasks.php

 

use BlitzPHP\Tasks\Scheduler;

return [
    // ...
	// ...

    /**
     * Enregistrez toutes les tâches dans cette méthode pour l'application.
     */
    'init' => function (Scheduler $schedule) {
        $schedule->command('demo:refresh --all')->mondays('11:00 pm');
    },
];

bash
composer