PHPackages                             timespay/zfb - 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. timespay/zfb

ActiveLibrary

timespay/zfb
============

zfb

1.1.0(1y ago)093MITPHP

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/huixpszx/zfb)[ Packagist](https://packagist.org/packages/timespay/zfb)[ RSS](/packages/timespay-zfb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

thinkphp秒级定时任务管理包
=================

[](#thinkphp秒级定时任务管理包)

作用：
===

[](#作用)

Linux的定时任务管理，只能精确到每分钟，
----------------------

[](#linux的定时任务管理只能精确到每分钟)

此包针对php的thinkphp框架，需要精确到每秒钟的定时任务
--------------------------------

[](#此包针对php的thinkphp框架需要精确到每秒钟的定时任务)

如果执行途中遭遇错误，只会结束此次操作，不影响下一次任务执行
------------------------------

[](#如果执行途中遭遇错误只会结束此次操作不影响下一次任务执行)

安装命令：tp项目下 composer require timespay/zfb
----------------------------------------

[](#安装命令tp项目下-composer-require-timespayzfb)

完整操作如下：
=======

[](#完整操作如下)

1.进入newtp项目安装
-------------

[](#1进入newtp项目安装)

### 如果没有tp项目，可以新建 composer create-project topthink/think newtp

[](#如果没有tp项目可以新建-composer-create-project-topthinkthink-newtp)

### cd newtp

[](#cd-newtp)

### composer require timespay/zfb 【会自动安装依赖 workerman/workerman】

[](#composer-require-timespayzfb--会自动安装依赖-workermanworkerman)

2.将newtp/vendor/timespay/zfb/src/console
----------------------------------------

[](#2将newtpvendortimespayzfbsrcconsole)

### 覆盖到newtp/config/console

[](#覆盖到newtpconfigconsole)

3.进入newtp项目根目录，
---------------

[](#3进入newtp项目根目录)

### php think timer start，测试开始

[](#php-think-timer-start测试开始)

### php think timer stop，测试结束

[](#php-think-timer-stop测试结束)

4.修改
----

[](#4修改)

### 日常维护仅修改此文件即可，其他文件则无需修改

[](#日常维护仅修改此文件即可其他文件则无需修改)

### 间隔秒数INTERVAL;

[](#间隔秒数interval)

### 从app\\thirdCode\\NewTask获取实际任务,可自行修改实际任务路径

[](#从appthirdcodenewtask获取实际任务可自行修改实际任务路径)

5.持久进程php think timer start --d
-------------------------------

[](#5持久进程php-think-timer-start---d)

关闭持久进程php think timer stop --d
------------------------------

[](#关闭持久进程php-think-timer-stop---d)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8022fab66db34c33ab8267afe593d5f5ac10158d26b085b147c80e7948a66b9e?d=identicon)[huixpszx](/maintainers/huixpszx)

---

Top Contributors

[![huixpszx](https://avatars.githubusercontent.com/u/40597709?v=4)](https://github.com/huixpszx "huixpszx (5 commits)")

### Embed Badge

![Health badge](/badges/timespay-zfb/health.svg)

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

###  Alternatives

[workerman/phpsocket.io

A server side alternative implementation of socket.io in PHP based on Workerman

2.3k578.6k16](/packages/workerman-phpsocketio)[workerman/gateway-worker

1.0k643.4k74](/packages/workerman-gateway-worker)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[workerman/webman-framework

High performance HTTP Service Framework.

149314.9k256](/packages/workerman-webman-framework)[joanhey/adapterman

Use any framework and application with Workerman.

85255.9k1](/packages/joanhey-adapterman)[workerman/channel

146849.0k19](/packages/workerman-channel)

PHPackages © 2026

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