2017 © Pedro Peláez
 

library cron

image

quadrogod/cron

  • Wednesday, March 28, 2018
  • by quadrogod
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Instruction

  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, (*1)

The Versions

28/03 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Molchanov

28/03 2018

1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Molchanov

28/12 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Alex Molchanov