Download the PHP package webman-tech/crontab-task without Composer

On this page you can find all versions of the php package webman-tech/crontab-task. 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 crontab-task

webman-tech/crontab-task

本项目是从 webman-tech/components-monorepo 自动 split 出来的,请勿直接修改

简介

webman 定时任务管理插件,基于 workerman/crontab 实现,提供更加便捷的定时任务管理方式。

该插件解决了 webman 默认定时任务配置的一些问题:单进程下起多个定时任务存在阻塞问题、缺乏统一的日志记录机制、定时任务管理不够灵活。

功能特性

安装

核心组件

BaseTask 基础任务类

BaseTask 是所有定时任务的基类,提供任务执行的完整生命周期管理。子类需实现 handle() 抽象方法编写具体业务逻辑,框架负责异常捕获、日志记录、事件触发和内存管理。异常分为两类:TaskException 记录为 warning 级别(业务异常),其他异常记录为 error 级别(系统异常)。

Schedule 调度器

Schedule 用于配置和管理定时任务进程,通过 addTask() 添加单个任务(独立进程)、addTasks() 添加多个任务(同一进程,注意阻塞问题),最后调用 buildProcesses() 构建进程配置数组。

TaskProcess 任务进程

TaskProcess 是实际的任务进程类,负责验证任务配置的正确性,并在进程启动时注册和管理定时任务的执行。

命令行工具

AI 辅助


All versions of crontab-task with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
webman-tech/common-utils Version ^5.0 || dev-main
workerman/crontab Version ^1.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 webman-tech/crontab-task contains the following files

Loading the files please wait ...