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

ActiveProject

martines/brain-games
====================

first project

v1.1.1(5y ago)07MITPHP

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yarncat/php-project-lvl1)[ Packagist](https://packagist.org/packages/martines/brain-games)[ RSS](/packages/martines-brain-games/feed)WikiDiscussions master Synced 6d ago

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

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

[](#brain-games)

[![PHP CI](https://github.com/yarncat/php-project-lvl1/workflows/PHP%20CI/badge.svg)](https://github.com/yarncat/php-project-lvl1/actions)[![Maintainability](https://camo.githubusercontent.com/9a920241d7364b10f8bbcdead08da941b3b2c3f979e522e39d8f22555c4c60c3/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39633836316661666166323337363061643661632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yarncat/php-project-lvl1/maintainability)

About
-----

[](#about)

Brain Games is a set of console mini-games for training mental arithmetic.

Install
-------

[](#install)

```
$ composer global require martines/brain-games
```

Start
-----

[](#start)

You can type in command-line:

```
$ brain-games
```

and select any game from the main menu,
or simply type the name of the game you are interested in:

- **brain-even** - determine if the given number is even or not;
- **brain-calc** - training of addition, subtraction and multiplication in the mind;
- **brain-gcd** - find the greatest common divisor of two given numbers;
- **brain-progression** - find the lost member of arithmetic progression;
- **brain-prime** - determine if the given number is prime or not;

Each game is played in three rounds. With the first incorrect answer, the game ends.
Good luck!

See how it works!
-----------------

[](#see-how-it-works)

[Install package and start Even game](https://asciinema.org/a/Mp0vUpnoRVuxuGm4Z1umiYG9C)

[Launch examples of Calc game](https://asciinema.org/a/jS1cV3oBRRQRsDZd0cEjgIHDK)

[Launch examples of Gcd game](https://asciinema.org/a/in0YIeU98vJrLOqoggK2gLVui)

[Launch examples of Progression game](https://asciinema.org/a/yiUTjCbzWVKypBWubd04f15xy)

[Launch examples of Prime game](https://asciinema.org/a/UDhUV0Co9SacB73ddErdjd3OO)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

9

Last Release

2124d ago

Major Versions

v0.6.0 → v1.0.02020-07-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd57e5eea88ccbe8f5c71aa4bea0ac686099fe21eb8371ad8ae285bac10cdf38?d=identicon)[Martines](/maintainers/Martines)

---

Top Contributors

[![yarncat](https://avatars.githubusercontent.com/u/62855800?v=4)](https://github.com/yarncat "yarncat (28 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

phpMemAdmin - Bringing Memcached to the web

5076.0k](/packages/clickalicious-phpmemadmin)[jeremykendall/password-validator

Password Validator validates password\_hash generated passwords, rehashes passwords as necessary, and will upgrade legacy passwords.

14469.9k3](/packages/jeremykendall-password-validator)[qtism/qtism

OAT QTI-SDK

86193.8k7](/packages/qtism-qtism)[niels-de-blaauw/php-doc-check

Command line tool that identifies code that needs documentation.

43236.3k4](/packages/niels-de-blaauw-php-doc-check)

PHPackages © 2026

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