Installs: 18

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/quadrogod/cron

1.0.2 2018-03-28 17:31 UTC

This package is auto-updated.

Last update: 2025-10-15 17:33:04 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