Skip to content

Releases: peppeocchi/php-cron-scheduler

Added support for SwiftMailer v6.0

07 Jul 11:00
Compare
Choose a tag to compare

Scheduler v2

15 Apr 23:24
Compare
Choose a tag to compare

Changelog

  • Scheduler configuration changes
    • removed emailFrom
    • added email configuration
      • from
      • subject
      • body
      • transport
    • removed timezone
    • removed verboseLockFile

New methods

  • then - This lets you define a callback to run after a job execution (e.g. log with a custom logger, ping a url ... )
  • onlyOne - This method has the same functionalities as the previous doNotOverlap

Removed methods

  • Advanced logging has been removed from the scheduler, the then method provides more flexibility.
    • setLogger
    • setLabel
    • setJobDoneMessage
  • doNotOverlap - The new method onlyOne allows more flexibility
  • every - More helpers have been added for simplicity
    • minute
    • hour
    • day
    • month

Schedule times

Check the README for all the available methods

Verbose lock file for closures

21 Feb 09:45
Compare
Choose a tag to compare
  • Added new option to generate lock files based on a command id when scheduling closures.
  • Fixes on closure schedules.
  • Removed forcing of jobs to run in foreground if set to not overlap.

Hotfix runInForeground method not chain-able

03 Feb 09:37
Compare
Choose a tag to compare
Made "runInForeground" chainable (#9)

The docs show runInForeground being chained with the following function being "every", however this fails as it does not return the instance of the Job class being used. added "return $this" to method

v1.3 - Overlapping jobs

19 Apr 00:59
Compare
Choose a tag to compare

New method doNotOverlap() prevents a job from overlapping if it's currently being executed.

v1.2 - PSR-3 support

12 Apr 14:15
Compare
Choose a tag to compare
Feature add psr3 support (#4)

* Adding Psr\Logger support

* add documentation

* small documentation fix

v1.1 Bugfixes and unit testing

22 Nov 11:11
Compare
Choose a tag to compare
  • Bugfixes
  • Unit testing
  • when method available

PHP Cron Scheduler v1.0.1

29 Sep 18:34
Compare
Choose a tag to compare

Require cronexpression @stable

PHP Cron Scheduler v1.0

29 Sep 18:23
Compare
Choose a tag to compare
Return $this on useConfig

v0.1 PHP Cron Scheduler

11 Jul 09:14
Compare
Choose a tag to compare

First version of the PHP Cron Scheduler.

You can schedule a (list of) cron job at a particular time (only simple cron expressions).