PHPackages                             yanepenb/1hbraingames - 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. yanepenb/1hbraingames

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

yanepenb/1hbraingames
=====================

This`s a console mini-games

0.2.9(6y ago)020PHP

Since Jun 27Pushed 6y agoCompare

[ Source](https://github.com/yanepenb/project-lvl1-s482)[ Packagist](https://packagist.org/packages/yanepenb/1hbraingames)[ RSS](/packages/yanepenb-1hbraingames/feed)WikiDiscussions master Synced 2mo ago

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

Brain-Games PHP:
----------------

[](#brain-games-php)

This is a set of logical mini-games launched from the console. List of games: Game: "Calculator" Game: "Parity Check" Game "Is it a prime number?" Game "Arithmetic Progression.

**Badges**
----------

[](#badges)

[![Maintainability](https://camo.githubusercontent.com/047f6e195ff0b36704aae5d3f5d0d3d50b1176418ca0d6b3178546fb8768f55b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36343639646434313939393433383731396561342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yanepenb/project-lvl1-s482/maintainability)[![Build Status](https://camo.githubusercontent.com/fa22e5543f17734391ce27428422a3f072fcecee501d2dd57bf4f81058084d3f/68747470733a2f2f7472617669732d63692e6f72672f79616e6570656e622f427261696e2d47616d65732d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yanepenb/Brain-Games-PHP)

**How to install:**
-------------------

[](#how-to-install)

```
composer global require yanepenb/1hbraingames

```

[![install](https://camo.githubusercontent.com/5575a11340ca75b2f94154f7555c91b44d99f3eaccff3b1532726d8af390ea54/687474703a2f2f692e696d6775722e636f6d2f4c7a767571684f2e676966)](https://camo.githubusercontent.com/5575a11340ca75b2f94154f7555c91b44d99f3eaccff3b1532726d8af390ea54/687474703a2f2f692e696d6775722e636f6d2f4c7a767571684f2e676966)

**Description:**
----------------

[](#description)

- `brain-even` - the user is shown a random number. And he needs to answer "yes", if the number is even, or "no" - if it is odd.
- `brain-calc` - the user is shown a random mathematical expression, for example 35 + 16, which needs to be calculated and the \*correct answer written down.
- `brain-gcd` - the user is shown two random numbers, for example, 25 50. The user must calculate and enter the greatest common divider of these numbers.
- `brain-progression` - the user is shown a series of numbers that form an arithmetic progression, one number is hidden. The user must define this number.
- `brain-prime` - the user is shown a random number. And he needs to answer “yes”, if the given number is simple. Otherwise, answer "no."

**How to play games:**
----------------------

[](#how-to-play-games)

### **Brain-even:**

[](#brain-even)

[![even](https://camo.githubusercontent.com/d32d09a80da5a183fba8c408addedeea406cc66438c80b124652fe952fb98077/687474703a2f2f692e696d6775722e636f6d2f53544c6d5770542e676966)](https://camo.githubusercontent.com/d32d09a80da5a183fba8c408addedeea406cc66438c80b124652fe952fb98077/687474703a2f2f692e696d6775722e636f6d2f53544c6d5770542e676966)

### **Brain-calc:**

[](#brain-calc)

[![calc](https://camo.githubusercontent.com/0f751e8225a8466ed6ec54df21744f9f972310465f6e71e457a1f9df0fe8773f/687474703a2f2f692e696d6775722e636f6d2f4d33554d79436a2e676966)](https://camo.githubusercontent.com/0f751e8225a8466ed6ec54df21744f9f972310465f6e71e457a1f9df0fe8773f/687474703a2f2f692e696d6775722e636f6d2f4d33554d79436a2e676966)

### **Brain-gcd:**

[](#brain-gcd)

[![gcd](https://camo.githubusercontent.com/abe12ac20e6861ae0c94ad58e9874e5f59043bcf91dda6b8300e88644c3dae39/687474703a2f2f692e696d6775722e636f6d2f636f71646773612e676966)](https://camo.githubusercontent.com/abe12ac20e6861ae0c94ad58e9874e5f59043bcf91dda6b8300e88644c3dae39/687474703a2f2f692e696d6775722e636f6d2f636f71646773612e676966)

### **Brain-progression:**

[](#brain-progression)

[![progression](https://camo.githubusercontent.com/cd2a09dae69b5572a34d1d0f7b10c6229541d7fadf8bd26d861a809b725558cd/687474703a2f2f692e696d6775722e636f6d2f513339773044592e676966)](https://camo.githubusercontent.com/cd2a09dae69b5572a34d1d0f7b10c6229541d7fadf8bd26d861a809b725558cd/687474703a2f2f692e696d6775722e636f6d2f513339773044592e676966)

### **Brain-prime:**

[](#brain-prime)

[![prime](https://camo.githubusercontent.com/483357b814700451bb3eacc8995e4bb5b2f7f6a18c2f53671c71055e00a584c8/687474703a2f2f692e696d6775722e636f6d2f6d344d506532512e676966)](https://camo.githubusercontent.com/483357b814700451bb3eacc8995e4bb5b2f7f6a18c2f53671c71055e00a584c8/687474703a2f2f692e696d6775722e636f6d2f6d344d506532512e676966)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Total

22

Last Release

2491d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3897cd4d0fbd6aa0e0d11367d33bf126f0cab4adb39c83ec9d7771bfba08653f?d=identicon)[yanepenb](/maintainers/yanepenb)

---

Top Contributors

[![ilyasharipov](https://avatars.githubusercontent.com/u/38163266?v=4)](https://github.com/ilyasharipov "ilyasharipov (11 commits)")

---

Tags

consolegameminibrain

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/yanepenb-1hbraingames/health.svg)

```
[![Health](https://phpackages.com/badges/yanepenb-1hbraingames/health.svg)](https://phpackages.com/packages/yanepenb-1hbraingames)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.2k](/packages/symfony-console)[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M713](/packages/psy-psysh)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.4k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M285](/packages/nunomaduro-termwind)[wp-cli/php-cli-tools

Console utilities for PHP

68325.0M364](/packages/wp-cli-php-cli-tools)

PHPackages © 2026

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