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

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

lubaro/brain-games
==================

A set of mini-games for CLI. First level project on hexlet.io.

1.1(6y ago)034MITPHP

Since Aug 8Pushed 6y agoCompare

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

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

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

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/41281d1756cb24649bdd4a71d7f6947a01d4c0db010d7a8279acafef2672a0b0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36303230653637383434346130393137363030652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/LubaRo/php-project-lvl1/maintainability) [![Build Status](https://camo.githubusercontent.com/6289b4054f90466d63de9a8241752dbce684faf8066215a8a9e751b6be0b7844/68747470733a2f2f7472617669732d63692e6f72672f4c756261526f2f627261696e2d67616d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LubaRo/brain-games)

The set of mini-console games. To win, you need to give three correct answers in a row. If you gave the wrong answer, you lost.

List of games:

1. `brain-even` - Determine if the number is even.
2. `brain-calc` - Calculate expression result.
3. `brain-gcd` - Find the greatest common divisor of two numbers.
4. `brain-progression` - Determine what number is missing.
5. `brain-prime` - Determine if the number is prime.

**Installation:**

To install this package run this command (Composer required): `composer global require lubaro/brain-games`

After that you can start game by running the command: `brain-[game_name]`

[![asciicast](https://camo.githubusercontent.com/5ab613ac80497caa139dc20c4035099cdcea351e596b29ed2649f5faa383f06e/68747470733a2f2f61736369696e656d612e6f72672f612f3237383532332e737667)](https://asciinema.org/a/278523)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

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

Recently: every ~2 days

Total

15

Last Release

2414d ago

Major Versions

0.6.4 → 1.02019-11-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29543596?v=4)[Lyubov Parfilova](/maintainers/lubaro)[@LubaRo](https://github.com/LubaRo)

---

Top Contributors

[![LubaRo](https://avatars.githubusercontent.com/u/29543596?v=4)](https://github.com/LubaRo "LubaRo (67 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k18.5M387](/packages/wp-cli-wp-cli)[indatus/dispatcher

Schedule your artisan commands within your application's source code

1.0k897.4k2](/packages/indatus-dispatcher)

PHPackages © 2026

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