PHPackages                             bmdevel/jobby - 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. bmdevel/jobby

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

bmdevel/jobby
=============

Manage all your cron jobs without modifying crontab. Handles locking, logging, error emails, and more.

3.5.0(5y ago)011.1kMITPHPPHP &gt;=7.2

Since Oct 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bmdevel/jobby)[ Packagist](https://packagist.org/packages/bmdevel/jobby)[ Docs](https://github.com/bmdevel/jobby)[ RSS](/packages/bmdevel-jobby/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (25)Used By (0)

Jobby, a PHP cron job manager
=============================

[](#jobby-a-php-cron-job-manager)

[![Total Downloads](https://camo.githubusercontent.com/c043edddbe4f2c727c23b63158be3a9ce31d8a8075b055528e2d1038a79d41ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656c6c6f6765726172642f6a6f6262792e737667)](https://packagist.org/packages/hellogerard/jobby)[![Latest Version](https://camo.githubusercontent.com/dd734e77f4456aefa23a1aabbb6907626368d606a53db8324b1ecc08a398115b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c6c6f6765726172642f6a6f6262792e737667)](https://packagist.org/packages/hellogerard/jobby)[![Build Status](https://camo.githubusercontent.com/cbcdfc4e6e53d153f60282150d13f37c124dec444f2eb52ccf6b21e8e45b3d83/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a6f6262797068702f6a6f6262792e737667)](https://travis-ci.org/jobbyphp/jobby)[![MIT License](https://camo.githubusercontent.com/a8536eec10d02a628483cb113d42651514bdbe597c9b0fb22fc9f653bd380a3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f68656c6c6f6765726172642f6a6f6262792e737667)](https://github.com/jobbyphp/jobby/blob/master/LICENSE)

Install the master jobby cron job, and it will manage all your offline tasks. Add jobs without modifying crontab. Jobby can handle logging, locking, error emails and more.

**NEW REPO:** We have moved `jobby` to a Github org. Please update your remotes to `https://github.com/jobbyphp/jobby.git`.

Features
--------

[](#features)

- Maintain one master crontab job.
- Jobs run via PHP, so you can run them under any programmatic conditions.
- Use ordinary crontab schedule syntax (powered by the excellent [`cron-expression`](https://github.com/mtdowling/cron-expression)).
- Run only one copy of a job at a given time.
- Send email whenever a job exits with an error status.
- Run job as another user, if crontab user has `sudo` privileges.
- Run only on certain hostnames (handy in webfarms).
- Theoretical Windows support (but not ever tested)

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

The recommended way to install Jobby is through [Composer](http://getcomposer.org):

```
$ composer require hellogerard/jobby

```

Then add the following line to your (or whomever's) crontab:

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

```

After Jobby installs, you can copy an example file to the project root.

```
$ cp vendor/hellogerard/jobby/resources/jobby.php .

```

### Running a job

[](#running-a-job)

```
