Download the PHP package evgeek/scheduler without Composer

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

Simple PHP Scheduler

Supports various types of tasks, task batches, customizable logging with any PSR-3 logger or stdout/stderr, full launch log in the database (powered by Doctrine DBAL).

Installation

Requires PHP version 7.2 or higher

Basic usage

Create php file ( for example) with scheduler setup code:

And add new line to crontab to run your scheduler file every minute:

Supported task types

All tasks are created using the method. The task type is recognized automatically.

Closure

Bash command

Php file

Job interface

The scheduler can work with any class that implements a simple interface (single required method must run the task).

Bunch

You can combine several tasks of different types into a batch and manage their launch in the same way as a single task.

Setting up a task

After creating a task using the method, you can add it to the scheduler using the method. After that, various methods of setting up the task launch become available.

Work mode methods

Examples

Setup methods

Helper methods

Scheduler setup

You can configure scheduler with handler object implements and config object . Example:

Handlers

Lock handler, implements . So far, only one is available.

Config

Allows you to configure other scheduling options. You can do this using constructor parameters ( object is immutable). Constructor parameters are of the following types:

Logger

The scheduler has two log channels: for getting detailed launch information and for task errors. Methods for configure:

First, the mapping goes according to a specific class, then - according to the parents, from top to bottom. Therefore, place more abstract errors below.

Default task options

Some options for setting default task options. The parameters specified in the task overwrite the default values.

Others

Future plans


All versions of scheduler with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
psr/log Version ^1.1
nesbot/carbon Version ^2.54
doctrine/dbal Version ^3.2
ext-json Version *
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 evgeek/scheduler contains the following files

Loading the files please wait ....