PHPackages                             sitedyno/phergie-fortune - 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. sitedyno/phergie-fortune

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

sitedyno/phergie-fortune
========================

Phergie plugin for displaying a fortune in channel

1.0(9y ago)110MITPHP

Since May 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sitedyno/phergie-fortune)[ Packagist](https://packagist.org/packages/sitedyno/phergie-fortune)[ RSS](/packages/sitedyno-phergie-fortune/feed)WikiDiscussions master Synced 2w ago

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

sitedyno/phergie-fortune
========================

[](#sitedynophergie-fortune)

[Phergie](https://www.phergie.org/) plugin for displaying a fortune in channel.

⚠️ This plugin makes system calls! It should be fine unless misconfigured. You have been warned. ⚠️

This plugin assumes you have installed fortune on your \*nix like system. For more detailed information on databases see `man fortune`.

[![Build Status](https://camo.githubusercontent.com/08786aa318f3edaf5ef83e3f9a80301c755de5e837d24f914ef211ee6e824cbf/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7369746564796e6f2f706865726769652d666f7274756e652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/sitedyno/phergie-fortune)[![codecov](https://camo.githubusercontent.com/f07d674c7335058cd0dca86e6ef6c92e3c82829b682d66057d2e3987ff9baf48/68747470733a2f2f636f6465636f762e696f2f67682f7369746564796e6f2f706865726769652d666f7274756e652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/sitedyno/phergie-fortune)

Install
-------

[](#install)

The recommended method of installation is [through composer](http://getcomposer.org).

```
composer require sitedyno/phergie-fortune

```

See Phergie documentation for more information on [installing and enabling plugins](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#plugins).

Provided Commands
-----------------

[](#provided-commands)

CommandParametersDescription!fortunenoneDisplays a random fortune in channelConfiguration
-------------

[](#configuration)

```
return [
    'plugins' => [
        // dependency
        new \Phergie\Irc\Plugin\React\Command\Plugin,

        // configuration, all is optional
        new \Sitedyno\PhergieFortune\Plugin([
            // The path to the fortune binary. Defaults to '/usr/games/fortune'.
            'binary-path' => '/usr/games/fortune',
            // List of databases to use. Defaults to 'fortunes'. See `man fortune` for possible values.
            'databases' => 'fortune',
            // Use only short fortunes. Defaults to true.
            'short' => true
        ])
    ]
];
```

Tests
-----

[](#tests)

To run the unit test suite:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

```

License
-------

[](#license)

Released under the MIT License. See `LICENSE.md`.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Unknown

Total

1

Last Release

3340d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/216721?v=4)[sitedyno](/maintainers/sitedyno)[@sitedyno](https://github.com/sitedyno)

---

Top Contributors

[![sitedyno](https://avatars.githubusercontent.com/u/216721?v=4)](https://github.com/sitedyno "sitedyno (22 commits)")

---

Tags

fortuneirc-botphergiephergie-pluginpluginbotircphergie

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sitedyno-phergie-fortune/health.svg)

```
[![Health](https://phpackages.com/badges/sitedyno-phergie-fortune/health.svg)](https://phpackages.com/packages/sitedyno-phergie-fortune)
```

PHPackages © 2026

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