PHPackages                             ava/brain-games - 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. ava/brain-games

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

ava/brain-games
===============

Collection of CLI games

1.0.0(5y ago)030MITPHP

Since Jun 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ava239/brain-games)[ Packagist](https://packagist.org/packages/ava/brain-games)[ RSS](/packages/ava-brain-games/feed)WikiDiscussions master Synced 4d ago

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

Brain Games
===========

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/5f90c49857a58d3dac27e8f96f3bf219739c28f2b6340be3c07449b55ae54340/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30346637613363346433316563616534663333612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/ava239/php-project-lvl1/maintainability)[![CI](https://github.com/ava239/php-project-lvl1/workflows/CI/badge.svg)](https://github.com/ava239/php-project-lvl1/workflows/CI/badge.svg)

CLI games to workout your brain with simple mathematics.

- brain-even
    Say whether number is even
- brain-calc
    Enter result of simple operation with natural numbers
- brain-gcd
    Enter the greatest common divisor of two numbers
- brain-progression
    Enter missing number in arithmetic progression
- brain-prime
    Say if number is prime

Install with composer
---------------------

[](#install-with-composer)

```
# globally
$ composer global require ava/brain-games

# or locally
$ composer require ava/brain-games
```

Examples below are for global installation

Run "Even" game
---------------

[](#run-even-game)

```
$ brain-even
```

[![asciicast](https://camo.githubusercontent.com/2f639da69fe1375471705433d512bddd0fb1dd0381095d2121ecd66c0eecb2f7/68747470733a2f2f61736369696e656d612e6f72672f612f55726b5a423163677976524c47336e6348784453496a3431792e737667)](https://asciinema.org/a/UrkZB1cgyvRLG3ncHxDSIj41y)

Run "Calc" game
---------------

[](#run-calc-game)

```
$ brain-calc
```

[![asciicast](https://camo.githubusercontent.com/93cdfa10364264497a9c680691ca47710fd91b67625d7e361584ed2ac9340869/68747470733a2f2f61736369696e656d612e6f72672f612f3334313938312e737667)](https://asciinema.org/a/341981)

Run "GCD" game
--------------

[](#run-gcd-game)

```
$ brain-gcd
```

[![asciicast](https://camo.githubusercontent.com/700c3e1611e8096e7c9ecfc0615c195d50d01a10df14a057798ae32038c73242/68747470733a2f2f61736369696e656d612e6f72672f612f3334323139332e737667)](https://asciinema.org/a/342193)

Run "Progression" game
----------------------

[](#run-progression-game)

```
$ brain-progression
```

[![asciicast](https://camo.githubusercontent.com/819495d0606094120e15d44d09fab1632dbff06c2b8dfbe660ecaedfedfbd521/68747470733a2f2f61736369696e656d612e6f72672f612f3334323734322e737667)](https://asciinema.org/a/342742)

Run "Prime" game
----------------

[](#run-prime-game)

```
$ brain-prime
```

[![asciicast](https://camo.githubusercontent.com/56bb83d74859e93b98e51e2d68fc54839ffe9324159959b505a237fe3e2be5b5/68747470733a2f2f61736369696e656d612e6f72672f612f3334323738312e737667)](https://asciinema.org/a/342781)

If you use local installation add path to package.
Also note that games placed in /bin/ directory of package.
Example if you are at package root directory:

```
./bin/brain-even
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

25

Last Release

2135d ago

Major Versions

0.8.6 → 1.0.02020-07-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/111c53de1db8bfcf869acce973484fe46cafc20de6689012a5be2dc2d204855c?d=identicon)[ava239](/maintainers/ava239)

---

Top Contributors

[![ava239](https://avatars.githubusercontent.com/u/24976731?v=4)](https://github.com/ava239 "ava239 (41 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ava-brain-games/health.svg)

```
[![Health](https://phpackages.com/badges/ava-brain-games/health.svg)](https://phpackages.com/packages/ava-brain-games)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[indatus/dispatcher

Schedule your artisan commands within your application's source code

1.1k855.3k2](/packages/indatus-dispatcher)

PHPackages © 2026

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