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

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

tazya/brain-games
=================

This is Brain Games for a command line

0.1.3(6y ago)122MITPHP

Since Nov 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Tazya/php-project-lvl1)[ Packagist](https://packagist.org/packages/tazya/brain-games)[ RSS](/packages/tazya-brain-games/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

php-project-lvl1
================

[](#php-project-lvl1)

[![Build Status](https://camo.githubusercontent.com/b580169a84c8b1f078c8c422fb1bb12235a6d87f90aee506a201a7ad316767f2/68747470733a2f2f7472617669732d63692e6f72672f54617a79612f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Tazya/php-project-lvl1)[![Code Climate](https://camo.githubusercontent.com/dd1f7a2f7675d9c1cdd764c998347bd7977c7b8914b9bd826ab80a69d2d36527/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f54617a79612f7068702d70726f6a6563742d6c766c312f6261646765732f6770612e737667)](https://codeclimate.com/github/Tazya/php-project-lvl1)[![Issue Count](https://camo.githubusercontent.com/23cf49acfabf4a85d6b832131612fa93b237be1937416e190c84aa5db30bfd73/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f54617a79612f7068702d70726f6a6563742d6c766c312f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/Tazya/php-project-lvl1)

Brain Games
-----------

[](#brain-games)

This console-based game included simple logic and arithmetic mini-games

Install
-------

[](#install)

Composer requires to install this game
Command for terminal:

```
composer global require tazya/brain-games

```

PHP version &gt; 7.1.0 is requred

Brain Even Game
---------------

[](#brain-even-game)

Answer "yes" if the number is even, othervise answer "no".
Use `brain-even` command to start
[![asciicast](https://camo.githubusercontent.com/6df0372d6dc43d004753c51a2a16b31b87e05b8a4b3ff47d61b7d2362fc9d211/68747470733a2f2f61736369696e656d612e6f72672f612f3239393635382e737667)](https://asciinema.org/a/299658)

Calc Game
---------

[](#calc-game)

What is the result of the expression?
Use `brain-calc` command to start
[![asciicast](https://camo.githubusercontent.com/5645cef050b5405bea4e9723385b040f553039eb51f56e4976a687fd3164efdd/68747470733a2f2f61736369696e656d612e6f72672f612f3239393636312e737667)](https://asciinema.org/a/299661)

GCD Game
--------

[](#gcd-game)

Find the greatest common divisor of given numbers.
Use `brain-gcd` command to start
[![asciicast](https://camo.githubusercontent.com/feff77a02998be7fb09075269ddef04e25c01c9a883bae585ae679f39b47dac7/68747470733a2f2f61736369696e656d612e6f72672f612f3239393636342e737667)](https://asciinema.org/a/299664)

Progression Game
----------------

[](#progression-game)

What number is missing in the progression?
Use `brain-progression` command to start
[![asciicast](https://camo.githubusercontent.com/bb05b9e33f97dc90cd8768737e16b950ea8c0d871f016e5d8aa260f82488d133/68747470733a2f2f61736369696e656d612e6f72672f612f3239393636352e737667)](https://asciinema.org/a/299665)

Prime Game
----------

[](#prime-game)

Answer "yes" if given number is prime. Otherwise answer "no".
Use `brain-prime` command to start
[![asciicast](https://camo.githubusercontent.com/09a8d1752a187b8814700271eaa18843df21f1cf84f493dbb58029782754ac38/68747470733a2f2f61736369696e656d612e6f72672f612f3239393636332e737667)](https://asciinema.org/a/299663)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~13 days

Total

12

Last Release

2238d ago

PHP version history (2 changes)0.0.2PHP &gt;=5.4.0

0.0.5PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19757553?v=4)[Pavel Chernyshev](/maintainers/Tazya)[@Tazya](https://github.com/Tazya)

---

Top Contributors

[![Tazya](https://avatars.githubusercontent.com/u/19757553?v=4)](https://github.com/Tazya "Tazya (40 commits)")

---

Tags

cligamehexlet

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/tazya-brain-games/health.svg)](https://phpackages.com/packages/tazya-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)
