2017 © Pedro Peláez
 

library php-scheduler

Run the task on shcedule using PHP.

image

rundiz/php-scheduler

Run the task on shcedule using PHP.

  • Saturday, January 27, 2018
  • by ve3
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Schedule Component

Run the task on shcedule using PHP. This is not cron job or cron tab but it is the schedule tasks using PHP.
You may need cron job or not, in case that there is no cron job just include it in the main PHP file that always called when users visited the webpage., (*1)

Tested on PHP 8.4., (*2)

Latest Stable Version License Total Downloads, (*3)

Example:

$PhpSchedule = new \Rundiz\PhpSchedule\PhpSchedule();
$PhpSchedule->add('unique-name', 'https://mysite.localhost/page/to/works', ['12', '15']);// run on 12 (midday) and 15.
$PhpSchedule->run();

Or you can run task using your function/class., (*4)

$PhpSchedule = new \Rundiz\PhpSchedule\PhpSchedule();
$PhpSchedule->add('unique-name1', 'myFunction', ['12', '15']);// run on 12 (midday) and 15.
$PhpSchedule->add('unique-name2', ['myStaticClass', 'myStaticMethod'], ['12', '15']);// run on 12 (midday) and 15.
$MyClass = new MyClass();
$PhpSchedule->add('unique-name3', [$MyClass, 'myMethod'], ['12', '15']);// run on 12 (midday) and 15.
$PhpSchedule->run();

For more example, please look inside tests folder., (*5)

The Versions

27/01 2018

dev-master

9999999-dev

Run the task on shcedule using PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

task scheduler schedule cron

23/01 2018

v1.0.1

1.0.1.0

Run the task on shcedule using PHP.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

task scheduler schedule cron