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

ActiveProject

foreachq/brain-games
====================

Brain games project

v1.1(4y ago)012proprietaryPHP

Since Jan 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Foreachq/brain-games)[ Packagist](https://packagist.org/packages/foreachq/brain-games)[ RSS](/packages/foreachq-brain-games/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

[![PHP CI](https://github.com/ForeachQ/brain-games/actions/workflows/php-ci.yml/badge.svg)](https://github.com/ForeachQ/brain-games/actions/workflows/php-ci.yml)[![](https://camo.githubusercontent.com/90086a7ba9d005fb41c669ab2e232053de056b6c69c2da267247558d37e58529/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65303165636161653261306539393964323534662f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/ForeachQ/brain-games/maintainability)

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

[](#brain-games)

«Brain Games» — a set of five console games based on popular mobile brain training apps.

Description
-----------

[](#description)

Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

Games:

- Calculator. Arithmetic expressions to be evaluated.
- Progression. Search for missing numbers in a sequence of numbers.
- Definition of an even number.
- Determining the greatest common divisor.
- Definition of a prime number.

Requirements
------------

[](#requirements)

- php 7.4
- composer 2.\*

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

[](#installation)

- Download package

```
composer create-project foreachq/brain-games
```

- Install dependencies

```
make install

```

Usage
-----

[](#usage)

- Choose 1 game from list:

    - Definition of an even number (brain-even)
    - Calculator (brain-calc)
    - Determining the greatest common divisor (brain-gcd)
    - Progression (brain-progression)
    - Definition of a prime number (brain-prime)
- Run make command:

```
make

```

Asciinemas of gameplay
----------------------

[](#asciinemas-of-gameplay)

- [brain-even](https://asciinema.org/a/463960)
- [brain-calc](https://asciinema.org/a/464242)
- [brain-gcd](https://asciinema.org/a/464244)
- [brain-progression](https://asciinema.org/a/464267)
- [brain-prime](https://asciinema.org/a/464278)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2

Last Release

1558d ago

### Community

Maintainers

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

---

Top Contributors

[![ihalavin](https://avatars.githubusercontent.com/u/81471488?v=4)](https://github.com/ihalavin "ihalavin (51 commits)")

---

Tags

php

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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