Download the PHP package yzh52521/http-crontab without Composer

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

接口化秒级定时任务

概述

基于 Workerman + ThinkPHP6.x/8.x 的接口化秒级定时任务管理,兼容 Windows 和 Linux 系统。

定时器格式说明:

任务分类

简单使用

启动服务

效果图

定时器接口说明

PING

基本信息

Path: /crontab/ping

Method: GET

接口描述:

请求参数

返回数据

名称类型 是否必须 默认值 备注 其他信息
codenumber非必须
datastring非必须
msgstring非必须

修改

基本信息

Path: /crontab/modify

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
id text 1
field text status 字段[status; sort; remark; title,rule]
value text 1

列表

基本信息

Path: /crontab/index

Method: GET

接口描述:

{
  "code": 200,
  "data": {
    "total": 4,
    "data": [
      {
        "id": 1,
        "title": "输出 tp 版本",
        "type": 1,
        "rule": "*/3 * * * * *",
        "target": "version",
        "parameter": "",
        "running_times": 3,
        "last_running_time": 1625636646,
        "remark": "每3秒执行",
        "sort": 0,
        "status": 1,
        "singleton": 1,
        "create_time": 1625636609,
        "update_time": 1625636609
      },
        {
        "id": 2,
        "title": "class任务 每月1号清理所有日志",
        "type": 2,
        "rule": "0 0 1 * *",
        "target": "app\\common\\crontab\\ClearLogCrontab",
        "parameter": "",
        "running_times": 71,
        "last_running_time": 1651121710,
        "remark": "",
        "sort": 0,
        "status": 1,
        "create_time": 1651114277,
        "update_time": 1651114277,
        "singleton": 1
        },
    ],
  },
  "msg": "信息调用成功!"
}

请求参数

Query

参数名称 是否必须 示例 备注
page 1 页码
limit 15 每页条数
filter {"title":"输出 tp 版本"} 检索字段值
op {"title":"%*%"} 检索字段操作

删除

基本信息

Path: /crontab/delete

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
id text 1,2

定时器池

基本信息

Path: /crontab/pool

Method: GET

接口描述:

请求参数

日志

基本信息

Path: /crontab/flow

Method: GET

接口描述:

请求参数

Query

参数名称 是否必须 示例 备注
page 1 页码
limit 15 每页条数
filter {"crontab_id":"1"} 检索字段值
op {"crontab_id":"="} 检索字段操作

添加

基本信息

Path: /crontab/add

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
title text 输出 thinkphp 版本 任务标题
type text 1 任务类型 (1 command, 2 class, 3 url,4 shell)
rule text /3 任务执行表达式
target text version 调用任务字符串
parameter text 调用任务参数(url和shell无效)
remark text 每3秒执行 备注
sort text 0 排序
status text 1 状态[0禁用; 1启用]
singleton text 1 是否单次执行 [0 是 1 不是]

重启

基本信息

Path: /crontab/reload

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/x-www-form-urlencoded

Body

参数名称 参数类型 是否必须 示例 备注
id text 1,2 计划任务ID 多个逗号隔开

返回数据


All versions of http-crontab with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
ext-json Version *
nikic/fast-route Version ^1.3
workerman/workerman Version ^4.0
workerman/crontab Version ^1.0
symfony/process Version ^4.4|^5.4|^6.0
yzh52521/think-lock 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 yzh52521/http-crontab contains the following files

Loading the files please wait ....