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

ActiveLibrary

li0n0k/brain-games
==================

Project 1 from Hexlet

v1.0.11(7y ago)018MITPHP

Since Nov 27Pushed 7y agoCompare

[ Source](https://github.com/lion0k/project-lvl1-s384)[ Packagist](https://packagist.org/packages/li0n0k/brain-games)[ RSS](/packages/li0n0k-brain-games/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (12)Used By (0)

### Project Brain games on Hexlet

[](#project-brain-games-on-hexlet-)

---

[![](https://camo.githubusercontent.com/aefb00deca73b7d8634f2b9d730745d4395e45948c5dd5543b63c39a2052b82b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343838366261633837393464643138613436642f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/lion0k/project-lvl1-s384/maintainability)[![](https://camo.githubusercontent.com/6ccc791cceaa67f3f04b604014dc80850800bbb4811c831f049c8ef9697a6cad/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31343838366261633837393464643138613436642f746573745f636f766572616765)](https://codeclimate.com/github/lion0k/project-lvl1-s384/test_coverage)[![](https://camo.githubusercontent.com/79a92ac47ffc8aad2c09743aea54bc0c87a03211f0cad1751229af92da63178a/68747470733a2f2f7472617669732d63692e6f72672f6c696f6e306b2f70726f6a6563742d6c766c312d733338342e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lion0k/project-lvl1-s384)---

#### Descriptions games

[](#descriptions-games)

All mini-games ask you 3 questions. Your challenge is to answer all questions correctly.

- **brain-even** - specify if the number is even or not, using only yes or no.
- **brain-calc** - find a solution to a mathematical expression, like 2 \* 9
- **brain-gcd** - find the greatest common divisor of two numbers, like (55, 40) = 5
- **brain-progression** - You are given an arithmetic progression, for example, 8 12 16 20 .. 28 32 36 40 44. You must find the missing number of the sequence.
- **brain-prime** - specify if the number is prime or not, using only yes or no.

---

#### Installation and usage

[](#installation-and-usage)

1\) `composer global require li0n0k/brain-games`
2\) Add in your PATH - `$HOME/.composer/vendor/bin`
3\) Run for example `brain-even`
4\) Enjoy!

---

#### Example installation and play

[](#example-installation-and-play)

[![](https://camo.githubusercontent.com/70bd244ba460059bbf6db0f48db99c4e0e1555620a3325e2646ccb2e10ab7cf4/68747470733a2f2f61736369696e656d612e6f72672f612f7745584e6548684b73726e3351695a55516d714d6469746c302e737667)](https://asciinema.org/a/wEXNeHhKsrn3QiZUQmqMditl0)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Total

11

Last Release

2722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4afa69017d3ef653451db2918764a5baea8c7761a957188028e6e17588a72d02?d=identicon)[li0n0k](/maintainers/li0n0k)

---

Top Contributors

[![lion0k](https://avatars.githubusercontent.com/u/26479080?v=4)](https://github.com/lion0k "lion0k (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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