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

ActiveLibrary

jougene/brain-games
===================

Hexlet project

1.1.18(8y ago)0442MITPHP

Since Jul 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jougene/project-lvl1-s136)[ Packagist](https://packagist.org/packages/jougene/brain-games)[ RSS](/packages/jougene-brain-games/feed)WikiDiscussions master Synced 3d ago

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

Brain games php package
=======================

[](#brain-games-php-package)

[![Code Climate](https://camo.githubusercontent.com/59e9d5c6cfe3690b70dd24be07ae008071854228961326bccc768f50769c5763/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a6f7567656e652f70726f6a6563742d6c766c312d733133362f6261646765732f6770612e737667)](https://codeclimate.com/github/jougene/project-lvl1-s136)[![Test Coverage](https://camo.githubusercontent.com/3dc0098595a1019c87e46d00432c3e7b9e1fb316ce32498ea5ee8d6d28aeef95/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a6f7567656e652f70726f6a6563742d6c766c312d733133362f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/jougene/project-lvl1-s136/coverage)[![Issue Count](https://camo.githubusercontent.com/c791e4262b51d057dcf1dacf474d73994f3c4a88e55c577d3dd302ed35869b56/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a6f7567656e652f70726f6a6563742d6c766c312d733133362f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/jougene/project-lvl1-s136)[![Build Status](https://camo.githubusercontent.com/23471ecd2c6c8eed4d7db0e7c372ab671fd477cc8b16681011b8544652e2e48a/68747470733a2f2f7472617669732d63692e6f72672f6a6f7567656e652f70726f6a6563742d6c766c312d733133362e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jougene/project-lvl1-s136)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

Installation
------------

[](#installation)

`composer global require jougene/brain-games`

Description
-----------

[](#description)

Some mini console brain games. The specific game ask you for 3 questions. Your challenge is to answer to all of them correctly.

Games list
----------

[](#games-list)

- brain-even - specify if the number is even or not.
- brain-calc - find the result of simple math expression
- brain-gcd - find the greatest common divisor of two given numbers
- brain-balance - balance the number (the difference of two digits in the given number should not equal more than one)
- brain-progression - find a missed number in the arithmetic progression
- brain-prime - specify if the number is prime or not

Usage
-----

[](#usage)

Firstly you need add `~/.composer/vendor/bin` to your PATH

`$ bin/'game name'`ex. `$ bin/brain-prime`

Example
-------

[](#example)

[![asciicast](https://camo.githubusercontent.com/cc6a2f0e03fba837b8d43d51e6018f795229e0a701ce968aa27bc17e2d4788ed/68747470733a2f2f61736369696e656d612e6f72672f612f3132393037332e706e67)](https://asciinema.org/a/129073)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

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

23

Last Release

3223d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c921112b12dea7d3daf7ef6be868993f179e6b007fdb4cdb5310cca9a6a50bcf?d=identicon)[jougene](/maintainers/jougene)

---

Top Contributors

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

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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