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. [Utility &amp; Helpers](/categories/utility)
4. /
5. foreachq/brain-games

ActiveProject[Utility &amp; Helpers](/categories/utility)

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 today

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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1604d 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

[ecoapm/libyear

A simple measure of software dependency freshness

28306.2k](/packages/ecoapm-libyear)[niels-de-blaauw/php-doc-check

Command line tool that identifies code that needs documentation.

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

PHPackages © 2026

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