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

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

iselldonuts/brain-games
=======================

Collection of cli-games for your brain

1.1.0(7y ago)033MITPHP

Since Jul 2Pushed 7y agoCompare

[ Source](https://github.com/iselldonuts/project-lvl1-s300)[ Packagist](https://packagist.org/packages/iselldonuts/brain-games)[ RSS](/packages/iselldonuts-brain-games/feed)WikiDiscussions master Synced 1mo ago

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

[![Logo](https://camo.githubusercontent.com/6c3d28e58b5c9a40897f982e99009753e9178f8f0a6c97057c2ce10d62d83385/68747470733a2f2f692e696d6775722e636f6d2f38587254564f4f2e706e67)](https://camo.githubusercontent.com/6c3d28e58b5c9a40897f982e99009753e9178f8f0a6c97057c2ce10d62d83385/68747470733a2f2f692e696d6775722e636f6d2f38587254564f4f2e706e67)

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

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/067bf432dcc02eab2ed9280dbe82f2ed925c60bbbe10258a743a44e5b9225191/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64396462356634323764393030386338623663632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/iselldonuts/project-lvl1-s300/maintainability)[![Test Coverage](https://camo.githubusercontent.com/eb50db72300a6422b92192be3d9b3fc37322e66ac661946938cd7971a8ab4a7b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64396462356634323764393030386338623663632f746573745f636f766572616765)](https://codeclimate.com/github/iselldonuts/project-lvl1-s300/test_coverage)[![Build Status](https://camo.githubusercontent.com/c6a1cdb255bf5f390ad818216e1ec2f621c91df2180c11a8df530861069e4f54/68747470733a2f2f7472617669732d63692e6f72672f6973656c6c646f6e7574732f70726f6a6563742d6c766c312d733330302e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/iselldonuts/project-lvl1-s300)

A collection of cli-games for your brain.

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

[](#installation)

With [Composer](https://getcomposer.org):

```
composer global require iselldonuts/brain-games
```

Games List
----------

[](#games-list)

#### Even

[](#even)

Determine whether the given number is even or odd.

```
brain-even
```

#### Calc

[](#calc)

Find the result of the given expression.

```
brain-calc
```

#### Gcd

[](#gcd)

Find the greatest common divisor of the given numbers.

```
brain-gcd
```

#### Balance

[](#balance)

Balance the given number.

```
brain-balance
```

#### Progression

[](#progression)

Find the missing number in the given arithmetic progression.

```
brain-progression
```

#### Prime

[](#prime)

Determine whether the given number is prime or not.

```
brain-prime
```

Gameplay
--------

[](#gameplay)

[![Gameplay](https://camo.githubusercontent.com/c3bb86d341ac6f64b9752ccc9816ec42550eccc60a19919111875b6058f1f810/68747470733a2f2f692e696d6775722e636f6d2f6b524f325277432e676966)](https://camo.githubusercontent.com/c3bb86d341ac6f64b9752ccc9816ec42550eccc60a19919111875b6058f1f810/68747470733a2f2f692e696d6775722e636f6d2f6b524f325277432e676966)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

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

Total

16

Last Release

2862d ago

Major Versions

0.1.5 → 1.0.02018-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/3131e9243ed9650e93cb4096107c90258dd008e754b14e74335f16cf68ae30f2?d=identicon)[iselldonuts](/maintainers/iselldonuts)

---

Top Contributors

[![iselldonuts](https://avatars.githubusercontent.com/u/37897386?v=4)](https://github.com/iselldonuts "iselldonuts (26 commits)")

---

Tags

cligame

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M318](/packages/wp-cli-wp-cli)

PHPackages © 2026

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