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

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

dawn/crontab
============

linux 定时器

1.0(7y ago)07MITPHP

Since Sep 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fafucoder/crontab)[ Packagist](https://packagist.org/packages/dawn/crontab)[ RSS](/packages/dawn-crontab/feed)WikiDiscussions master Synced 2d ago

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

PHP Crontab [![Build Status](https://camo.githubusercontent.com/343567bd6434d507e5dcb83c35ab08288e59b6b956c56a95c680f39931c77809/68747470733a2f2f7472617669732d63692e636f6d2f66616675636f6465722f63726f6e7461622e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/fafucoder/crontab)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#php-crontab-)

PHP crontab is the implementation of Linux crontab on PHP (essentially still requires crontab as a timing boot driver), the purpose is to facilitate crontab management.

Get Start
---------

[](#get-start)

### Installation

[](#installation)

First of all you should require crontab package, is recommend way to install is through [Composer](http://getcomposer.org):

```
$ composer require dawn/crontab
```

Then add linux crontab command to run php crontab

```
* * * * * /path/to/project && php crontab.php 1>>/dev/null 2>&1

```

The last you can write crontab job in crontab.php.

### Run a job

[](#run-a-job)

Crontab manager is manger job, so you can use manager to add a job or remove a job, this is an example.

```
