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

ActiveProject

jonathanmaron/fortune
=====================

Unix-style fortune program that displays a random quotation.

1.0.0(6y ago)09BSD-3-ClausePHPPHP ^7.1

Since Aug 26Pushed 10mo agoCompare

[ Source](https://github.com/jonathanmaron/fortune)[ Packagist](https://packagist.org/packages/jonathanmaron/fortune)[ RSS](/packages/jonathanmaron-fortune/feed)WikiDiscussions master Synced 3d ago

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

Fortune
=======

[](#fortune)

`fortune` is a command line script that displays a random quotation.

[![Motivate](fortune.png)](fortune.png)

It is similar to the BSD `fortune` program, originally written by Ken Arnold. Unlike Arnold's program, however, this version is written in PHP, using [Symfony](https://en.wikipedia.org/wiki/Symfony) components.

### Installation

[](#installation)

Use [Composer](https://getcomposer.org/doc/00-intro.md#globally) to install the application:

```
composer create-project jonathanmaron/fortune ~/app/fortune

```

### Usage

[](#usage)

```
$ ~/app/fortune/bin/fortune

"A strong passion for any object will ensure success, for the desire of the end
will point out the means."
    -- Henry Hazlitt

```

By default, `fortune` wraps lines at terminal window width. You can change this by specifying the `--wordwrap` option:

```
$ ~/app/fortune/bin/fortune -wordwrap=25

"Success listens only to
applause. To all else it
is deaf."
    -- Elias Canetti

```

To disable word wrapping specify `--wordwrap=0`.

It is recommended to add `fortune` to your path:

```
$ cd ~/bin

$ ln -s ~/app/fortune/bin/fortune fortune

$ fortune

"Be cool to people. Be nice to as many people as you can. Smile to as many people
as you can, and have them smile back at you."
    -- Joe Rogan

```

### References

[](#references)

- [fortune](https://en.wikipedia.org/wiki/Fortune_(Unix)) - BSD implementation.
- [fortune](http://software.clapper.org/fortune/) - Python implementation.
- JSON files, containing quotations:
    - [famous-quotes](https://github.com/olhapi/famous-quotes)
    - [motivate](https://github.com/mubaris/motivate)
    - [Database-Quotes-JSON](https://github.com/4skinSkywalker/Database-Quotes-JSON)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

2454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18d8bc9bdee8ab1b0cfccce6a06d2438acbed3a58b0046c4834c5678f6769342?d=identicon)[jonathanmaron](/maintainers/jonathanmaron)

---

Top Contributors

[![jonathanmaron](https://avatars.githubusercontent.com/u/298462?v=4)](https://github.com/jonathanmaron "jonathanmaron (75 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)

PHPackages © 2026

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