PHPackages                             showx/cronshow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. showx/cronshow

ActiveApplication[Utility &amp; Helpers](/categories/utility)

showx/cronshow
==============

定时任务控制平台

811PHP

Since Oct 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/showx/cronshow)[ Packagist](https://packagist.org/packages/showx/cronshow)[ RSS](/packages/showx-cronshow/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

cronshow
========

[](#cronshow)

基于workerman做的定时任务控制台,Linux 定时任务控制，比linux自带的cronjob增加秒级功能。

运行环境
====

[](#运行环境)

1. php &gt;= 7.0 php扩展需要 pcntl libevent
2. Linux
3. 预留7788与8877和8089端口

使用教程
====

[](#使用教程)

安装
--

[](#安装)

1. 下载完项目之后，在根composer install一下,主要加载workerman的库（phper都该懂composer ^\_^） `composer install`
2. 首次设置要把Application/Config\_example 复制文件夹到Application/Config

配置
--

[](#配置)

配置要启动的job Application/config下的配置文件 代码里Config\_example --&gt; Config

### 按天运行

[](#按天运行)

```
// Day.php 每天某个时刻的运行
// 例如每天10点15分运行一次
return [
    "10:15" => [
    "echo no",
    "sh /test/test.sh"
    ]
];
```

### 按分钟运行

[](#按分钟运行)

```
// Minute.php 每隔多少分钟运行一次
// 每1钟01秒运行一次
return [
    "1" => [
    "echo no"
    ]
];
```

### 按秒运行

[](#按秒运行)

```
Second.php 每隔多少秒运行一次
// 每5秒运行一次
return [
    "5" => [
    "echo no"
    ]
];
```

web管理的配置
--------

[](#web管理的配置)

```
// Web.php web管理
// ip:8089, 也可以使用nginx反向代理一下
return [
    //agent的描述
    "agent_id" => "test",
    "ip" => "0.0.0.0",
    "port" => "8089",
    "server" => "127.0.0.1",
    // 需要访问的agent,一般是ip+8089
    "client" => [
        // '172.17.0.5:8089',
        '127.0.0.1:8089'
    ],
    "key" => "test",
    // 需要登录跳转的登录地址
    "login_url" => "http://www.baidu.com",
    //  是否自动跳去登录
    "autoredirectloginurl" => false,
];
## 权限逻辑文件
// Config\Acl.php 这里加上登录逻辑，默认return true即校验成功
```

运行web界面，可以启动或停止相关进程。

### 查看web管理

[](#查看web管理)

`http://127.0.0.1:8089?op=master_list`

效果如下:

[![](doc.jpg)](doc.jpg)

命令相关
====

[](#命令相关)

测试运行效果
------

[](#测试运行效果)

php job.php start, 会输出运行信息

运行cron服务
--------

[](#运行cron服务)

本根目录运行以下命令即可 php job.php start -d

停止服务
----

[](#停止服务)

php job.php stop

todo
====

[](#todo)

1. 添加队列运行（之前是队列运行，后改成并行，现在还需要根据配置来队列运行）
2. 增加钉钉通知

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ca235e17f91b10c09235c1559ed7526d94232a552758be8ef25dec92668b19?d=identicon)[show](/maintainers/show)

---

Top Contributors

[![showx](https://avatars.githubusercontent.com/u/1758264?v=4)](https://github.com/showx "showx (36 commits)")

### Embed Badge

![Health badge](/badges/showx-cronshow/health.svg)

```
[![Health](https://phpackages.com/badges/showx-cronshow/health.svg)](https://phpackages.com/packages/showx-cronshow)
```

###  Alternatives

[illuminate/conditionable

The Illuminate Conditionable package.

9043.1M32](/packages/illuminate-conditionable)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
