Download the PHP package ttree/scheduler without Composer

On this page you can find all versions of the php package ttree/scheduler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scheduler

Flow & Neos Task Scheduler

A basic tasks scheduler inspired by cron for your Flow and Neos project.

Create a Task object

You need to implement the Ttree\Scheduler\Task\TaskInterface::

Dynamic Tasks

You can schedule your own Task object, by adding a `Ttree\Scheduler\Annotations\Schedule annotation to your class::

This task will be executed every minute. Dynamic task do not support arguments, the $arguments of the execute method is always an empty array.

If your expression contains slashes, you have to double-escape them. I.e. run the task every 5 minutes: @Scheduler\Schedule(expression="*\\/5 * * * *")

You can also add a description to your task using the Meta annotation::

Persisted Tasks

You can also create persisted tasks. Persisted tasks support execution argument. You can register the same task object multiple times, if your arguments are different between each task. You can pass a valid JSON arguments array:

flow task:register --expression "* */3 * * *" --task "Ttree\Aggregator\Task\AggregatorTask" --arguments '{"node": "af97b530-0c70-7b87-3cf4-f9a611f88c18"}'

Available Configuration Options

Option Default Description
allowParallelExecution true If the scheduler command is executed while the scheduler is already running tasks, the second scheduler waits until the first one is finished

Available CLI helpers

List all available tasks (dynamic and persisted):

flow task:list

Run all due tasks (dynamic and persisted):

flow task:run

Directly run a single task:

flow task:runSingle --task [identifier]

Enable a persisted task:

flow task:enable --task [identifier]

Disable a persisted task:

flow task:disable --task [identifier]

TODO

Feel free to open issue if you need a specific feature and better send a pull request. Here are some idea for future improvements:

Acknowledgments

This package is inspired by Famelo.Scheduler - by mneuhaus.

Development sponsored by ttree ltd - neos solution provider.

License

Licensed under GPLv2+, see LICENSE


All versions of scheduler with dependencies

PHP Build Version
Package Version
Requires neos/flow Version ^7.0 || ^8.0
mtdowling/cron-expression Version ^1.2
beberlei/assert Version ^2.7
neos/utility-lock Version ^5.3 || ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ttree/scheduler contains the following files

Loading the files please wait ....