1.0.2 2018-03-28 17:31 UTC

This package is auto-updated.

Last update: 2024-11-15 15:33:59 UTC


README

  1. Create your composer.json and run "composer require quadrogod\cron"
  2. Create your App/Cron/Task_{TaskName or Task_Name}.php files with Class Task_{TaskName or Task_Name} extends \Quadrogod\Cron\Task
  3. Create method action_default() OR action_{action_name}() with your logic
  4. Execute script in console "php cron.php --task={TaskName} --action={action_name}" OR use web browser "http(s)://site.name/cron.php?task={TaskName}", * - optional param, default use action_default() method
  5. All params available in task class in $_params
  6. Use Autoload section in your composer.json
    "autoload": {
        "psr-4": {
            "App\\": "App/"           
        }
    }

More info from Alex admin@tech-con.kz