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

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

sasha/brain-games
=================

hexlet brain-game

v1.1(5y ago)111MITPHP

Since Aug 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/molych/brain-games)[ Packagist](https://packagist.org/packages/sasha/brain-games)[ RSS](/packages/sasha-brain-games/feed)WikiDiscussions master Synced 1w ago

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

brain-games
===========

[](#brain-games)

[![](https://camo.githubusercontent.com/1569c37e9ac6bfa6c59bee631756fc9a7d01de13a3cd6f4e10b8d6e33a9082ca/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61393961383864323861643337613739646266362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/molych/brain-games)[![](https://github.com/molych/brain-games/workflows/PHP-CI/badge.svg)](https://github.com/molych/brain-games/actions)

### Install with composer

[](#install-with-composer)

```
composer global require sasha/brain-games

```

The project contains 5 games

- brain-even - Answer 'yes' if the number is even, otherwise answer 'no'
- brain-calc - What is the result of the expression?
- brain-gcd - What number is missing in the progression?
- brain-progression - What number is missing in the progression?
- brain-prime - Answer 'yes' if given number is prime, otherwise answer 'no'

You can run a set of games in the command line (**brain-games**) or each game separately

brain-even
[![](https://camo.githubusercontent.com/9703ff407031ab151b18f2af79cc6fd3902b2c4bfd900435a8564963c4a22bf0/68747470733a2f2f61736369696e656d612e6f72672f612f3335373635362e706e67)](https://asciinema.org/a/357656)[![](https://camo.githubusercontent.com/185acf905505dfcb4fad8c34b26f461a54dc65afea3dcf171ca8fda684b6472b/68747470733a2f2f61736369696e656d612e6f72672f612f3335373635372e706e67)](https://asciinema.org/a/357657)
brain-calc
[![](https://camo.githubusercontent.com/ca08a747ed06724041b07981e39c13441e66a54cdf14f679ca931fe669c1db3f/68747470733a2f2f61736369696e656d612e6f72672f612f3335373635392e706e67)](https://asciinema.org/a/357659)[![](https://camo.githubusercontent.com/232577d88b54f4a4c63f68e1a26387b263ac25c8c71422efb4bc9499361e4d85/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636332e706e67)](https://asciinema.org/a/357663)
brain-gcd
[![](https://camo.githubusercontent.com/2f365f758ac6bd4f6758729d3462d934dd2f1a616e773ff3ef569ab671858094/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636342e706e67)](https://asciinema.org/a/357664)[![](https://camo.githubusercontent.com/f2849809e10f8085bff5823e2d17808b592ed88d0708deffd2db3759ca2ff837/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636352e706e67)](https://asciinema.org/a/357665)
brain-progression
[![](https://camo.githubusercontent.com/a64bfb788716776b4b18b365e7fa9347a933b7e9c0df1bc1e338d2879c6cb48f/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636392e706e67)](https://asciinema.org/a/357669)[![](https://camo.githubusercontent.com/d8dc8e80ade9ed04320b153ee53e4d1d061d2bb951ba728570031266c6a5e604/68747470733a2f2f61736369696e656d612e6f72672f612f3335373637302e706e67)](https://asciinema.org/a/357670)
brain-prime
[![](https://camo.githubusercontent.com/0f84c3e1d6245cb9e95a5890e902ab0131ecabac13d63894c0e6b8e976b01449/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636372e706e67)](https://asciinema.org/a/357667)[![](https://camo.githubusercontent.com/294d01695c58cdd9bda48c0facec3ff27b86e6175c104d41e9af6b9cc3149bdd/68747470733a2f2f61736369696e656d612e6f72672f612f3335373636382e706e67)](https://asciinema.org/a/357668)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

7

Last Release

2041d ago

Major Versions

v0.5 → v1.02020-09-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f9627d04ee9b46e043a29a94ea43680e4fc347591614b7fc3ca63abf34bd188?d=identicon)[molych](/maintainers/molych)

---

Top Contributors

[![molych](https://avatars.githubusercontent.com/u/56492332?v=4)](https://github.com/molych "molych (72 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[niels-de-blaauw/php-doc-check

Command line tool that identifies code that needs documentation.

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

A simple measure of software dependency freshness

28302.5k](/packages/ecoapm-libyear)

PHPackages © 2026

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