PHPackages                             selden1992/crontab - 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. selden1992/crontab

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

selden1992/crontab
==================

用于使用原生php实现crontab定时任务功能

2.3(9y ago)329Apache-2.0PHPPHP &gt;=5.4

Since Oct 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/selden1992/crontab)[ Packagist](https://packagist.org/packages/selden1992/crontab)[ RSS](/packages/selden1992-crontab/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

crontab 2.3
===========

[](#crontab-23)

用来在没有权限执行服务器的crontab时，模拟定时任务的。。

安装

composer require selden1992/crontab

第一次刷新页面会生成配置文件 ./config/cron\_config.php

按照注释修改

===============

实现原理

composer 自动加载 main.php文件

new \\crontab\\src\\run();

main.php 只实例化一个run对象

在服务器垃圾回收时，会执行run对象的\_\_destruct

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~16 days

Total

4

Last Release

3428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6645de82017106e5f82dff108225c338183991e509d3a5be8d5946a38e623436?d=identicon)[selden1992](/maintainers/selden1992)

---

Top Contributors

[![ctfang](https://avatars.githubusercontent.com/u/18717080?v=4)](https://github.com/ctfang "ctfang (1 commits)")

### Embed Badge

![Health badge](/badges/selden1992-crontab/health.svg)

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

PHPackages © 2026

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