PHPackages                             volnix/jobber - 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. [CLI &amp; Console](/categories/cli)
4. /
5. volnix/jobber

ActiveLibrary[CLI &amp; Console](/categories/cli)

volnix/jobber
=============

A slim library for printing typical CLI job output.

1.4.2(10y ago)01.4kMITPHPPHP &gt;= 5.4

Since Jan 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/volnix/jobber)[ Packagist](https://packagist.org/packages/volnix/jobber)[ Docs](https://github.com/volnix/jobber)[ RSS](/packages/volnix-jobber/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Jobber
======

[](#jobber)

[![Build Status](https://camo.githubusercontent.com/6208473a8812525bfd05b120db033ca2d513d0736edaa60511eadbdf38822772/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f766f6c6e69782f6a6f626265722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/volnix/jobber) [![Downloads](https://camo.githubusercontent.com/45f1a3f44728f4a6dc06a48aa529479c008bfa20c6e283b1ed6b723369684c3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f6c6e69782f6a6f626265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/volnix/jobber) [![Latest Stable Version](https://camo.githubusercontent.com/598f601b4c275e003d2a95caaa112a33bb235826f651455116e806023477b295/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766f6c6e69782f6a6f626265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/volnix/jobber) [![Code Coverage](https://camo.githubusercontent.com/6eb26fa8c0b2201bea59f54ce21798725a774ad0e2555558366c4496becf38b8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f766f6c6e69782f6a6f626265722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/volnix/jobber/?branch=master)

***Jobber*** is a super-slim library for printing output from a CLI job. It supports command-line colors through the use of [kevinlebrun/colors.php](https://packagist.org/packages/kevinlebrun/colors.php), a well-revered CLI color library.

It was built with simplicity in mind, as printing job output should be the least of your worries when building CLI-based scripts.

Example output from Jobber
--------------------------

[](#example-output-from-jobber)

```
***************************************************
2015-01-23 15:52:35 - Starting test_name

INFO: 2015-01-23 15:52:35 - foo
WARNING: 2015-01-23 15:52:35 - bar
SUCCESS: 2015-01-23 15:52:35 - baz
ERROR: 2015-01-23 15:52:35 - qux

2015-01-23 15:52:35 - Execution Time: 0.0 seconds / Peak memory usage: 3.22 Mb
***************************************************

```

Installation
------------

[](#installation)

Command line:

```
composer require volnix/jobber:~1.0
```

composer.json:

```
{
    "name": "your/application",
    "require": {
        "volnix/jobber": "~1.0"
    }
}
```

Usage
-----

[](#usage)

Typically the printer (`Volnix/Jobber/Printer`) will be started, then stopped. The start method prints out the job name and and some asterisks to fence off this job's output. The stop method prints memory usage, runtime, and more fences.

```
use Volnix/Jobber/Printer;

Printer::start('my_job_name');
Printer::info('Something happened, but it is not super important.');
Printer::stop();
```

Jobber also supports getting the output out of the printer in plain-text. This is especially useful for logging job output somewhere.

```
Printer::start('my_job_name');
Printer::info('Something happened, but it is not super important.');
Printer::stop();

$my_logger->info(Printer::getOutput());
```

All message types:

- Info (`Printer::info()`)
- Warning (`Printer::warning()`)
- Success (`Printer::success()`)
- Error (`Printer::error()`)
- Fatal (`Printer::fatal()`)
    - **Note:** `fatal` is merely an alias for `error` and `stop` in one call

If you desire to toggle verbosity on your job, this is supported. This will only disable info messages, while still allowing others to come through.

```
// turn off verbosity, disabling info messages
Printer::setVerbosity(false);
```

> **Note:** info messages will still be returned when calling Printer::getOutput() for logging purposes

If you desire to run multiple job "sessions" in one command, you can reset the printer.

```
// do job 1
Printer::start('job_number_1');
// do something in your code...
Printer::success('Something good happened.');
Printer::stop();

// reset the printer
Printer::reset();

// start job 2
Printer::start('job_number_2');
// ...
```

Finally, you may use sprintf-style messages as well by passing a tokenized (%s, %d, etc.) string as your first argument and an array of tokens as your second.

```
// printing with tokens
Printer::start('something job');
Printer::info('Exported %d records to %s.', [10, '/filepath/something/here.txt']); // "Exported 10 records to /filepath/something/here.txt"
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~29 days

Recently: every ~49 days

Total

8

Last Release

3967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf948f50a689332d2ef7bafa6265a83fea2dbd2c4f18453585fbc64cffa716b6?d=identicon)[volnix](/maintainers/volnix)

---

Top Contributors

[![volnix](https://avatars.githubusercontent.com/u/1538220?v=4)](https://github.com/volnix "volnix (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/volnix-jobber/health.svg)

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

###  Alternatives

[nategood/commando

PHP CLI Commando Style

8033.4M39](/packages/nategood-commando)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)

PHPackages © 2026

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