Download the PHP package cron-eu/cron-jobs without Composer

On this page you can find all versions of the php package cron-eu/cron-jobs. 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 cron-jobs

Manage TYPO3 scheduled tasks in files

Usually you maintain scheduler tasks manually inside a TYPO3 instance in the database directly using the backend module "Scheduler".

This extension allows to manage your tasks in a YAML configuration file, which is kept in sync with the database. With this, you can keep your tasks versioned, deployable and also reproducible (i.e. you can maintain a set of "maintainence tasks" in your wiki for easy copy&paste to new projects).

Installation

Note: This neither replaces the EXT:scheduler, nor does it interfere on the way the regular scheduler jobs are processed. Tasks created by this extension are still in the database and appear as regular tasks in the Scheduler backend module.

It will not touch manually added tasks. Tasks managed by cron_jobs will be placed inside a separate task group called "cron_jobs".

Usage

You work with it like this:

YAML configuration

A new YAML configuration file is introduced: config/scheduler/tasks.yaml. It looks like this:

Sync command controller

Once you have this file you can call:

It will create the defined tasks in your database (table tx_scheduler_tasks).

You can call this command after that, and it will keep your tasks in sync with this file. So as long as you keep the same identifiers (in our example, RefIndex or CachingFrameworkGarbageCollection) you can change the settings inside the YAML file, and the sync command will take care of updating it in the database. If nothing changed in your tasks YAML file, nothing will change in your database.

The sync will:

Important: You should not touch tasks managed by cron_jobs manually in the backend module!

Export command controller

If you already have tons of tasks not yet managed by cron_jobs in your installation, you can call this:

This will output a YAML file that you can add manually to your project as a kickstart (you still have to manually delete the manually created tasks from your database).

Reference

Syntax of config/scheduler/tasks.yaml

The YAML file config/scheduler/tasks.yaml is expected to have a root element called tasks:. Below that is a dictionary of identifiers which will also be stored in the database for later finding the tasks. Use unique names, for example a shortcut of the name of the task.

Options:


All versions of cron-jobs with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
typo3/cms-scheduler Version ^10.4 || ^11.5 || ^12.4
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 cron-eu/cron-jobs contains the following files

Loading the files please wait ....