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

ActiveProject

tolive/brain-games
==================

First project on Hexlet, Brain Games

v0.9.4(7y ago)032MITPHP

Since Jul 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ToLive/project-lvl1-s300)[ Packagist](https://packagist.org/packages/tolive/brain-games)[ RSS](/packages/tolive-brain-games/feed)WikiDiscussions master Synced 2d ago

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

[![](https://camo.githubusercontent.com/dceead301497b1f7d8e245e4bc557082158f4d9afa137fe53eff817082495e82/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34316434333761363761376437613833313564352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/ToLive/project-lvl1-s300/maintainability)[![](https://camo.githubusercontent.com/cc0893b37756840d98bfa534a01fa1988c253bbb275df6fe7661ed7608dd3f65/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34316434333761363761376437613833313564352f746573745f636f766572616765)](https://codeclimate.com/github/ToLive/project-lvl1-s300/test_coverage)[![](https://camo.githubusercontent.com/dd286c5f64ca667026b4a30888dbac47ed7f3c482ed9fb17af9eff6431160d29/68747470733a2f2f7472617669732d63692e6f72672f546f4c6976652f70726f6a6563742d6c766c312d733330302e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ToLive/project-lvl1-s300)

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

[](#brain-games)

Series of brain games, including:

- **Even** - game about guessing if number is even or not
- **Calc** - game generate expression and user must evaluate it
- **GCD** - game about guessing common divisor of two numbers
- **Balance** - game about flatten all digits in given number
- **Progression** - game about guessing hidden number in the progression list
- **Prime** - game about guessing if given number is prime

User must have 3 correct answers in a line to win. First wrong answer ends the game.

Install
-------

[](#install)

`composer require "tolive/brain-games"`

Usage
-----

[](#usage)

```
bin/brain-even
bin/brain-calc
bin/brain-gdc
bin/brain-balance
bin/brain-progression
bin/brain-prime

```

Gameplay
--------

[](#gameplay)

[![](https://raw.githubusercontent.com/ToLive/project-lvl1-s300/master/gameplay.gif)](https://raw.githubusercontent.com/ToLive/project-lvl1-s300/master/gameplay.gif)

Requirements
------------

[](#requirements)

- PHP 7.2
- [Composer](https://getcomposer.org/)

Author
------

[](#author)

Sergey Grabak

License
-------

[](#license)

Brain Games is licensed under the MIT License - see the [LICENSE](https://github.com/ToLive/project-lvl1-s300/blob/master/LICENSE) file for details.

###  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

Maturity61

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

17

Last Release

2870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d4cc661dafd73989f1dc543003485365d60a4495e900dbe464c1fbf757c595f?d=identicon)[ToLive](/maintainers/ToLive)

---

Top Contributors

[![ToLive](https://avatars.githubusercontent.com/u/2019736?v=4)](https://github.com/ToLive "ToLive (31 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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