PHPackages                             bondsa/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bondsa/brain-games

ActiveProject[Utility &amp; Helpers](/categories/utility)

bondsa/brain-games
==================

Brain games

0.8.2(7y ago)029GPL-3.0-or-laterPHPPHP &gt;= 7.0.0

Since May 23Pushed 7y agoCompare

[ Source](https://github.com/bondarenkosa/project-lvl1-s276)[ Packagist](https://packagist.org/packages/bondsa/brain-games)[ RSS](/packages/bondsa-brain-games/feed)WikiDiscussions master Synced 2mo ago

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

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

[](#brain-games)

[![Build Status](https://camo.githubusercontent.com/33a33bb69448d25ef333481bcf3021138ba955c364f05ff0f6e14b8712fefed8/68747470733a2f2f7472617669732d63692e6f72672f626f6e646172656e6b6f73612f70726f6a6563742d6c766c312d733237362e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bondarenkosa/project-lvl1-s276)[![Maintainability](https://camo.githubusercontent.com/1698b9175315de3834b5fa7af36ab4b674a2c75e1d7ff943ab1b3849dea5dc3c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61663432663965653562343263613162306539302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/bondarenkosa/project-lvl1-s276/maintainability)[![Test Coverage](https://camo.githubusercontent.com/9c86233aa776da47e09771c79c0df8268dfd5df87206e8f006c81d8fab18ed48/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61663432663965653562343263613162306539302f746573745f636f766572616765)](https://codeclimate.com/github/bondarenkosa/project-lvl1-s276/test_coverage)

Terminal based Mini Games

### List of Games

[](#list-of-games)

- **brain-even** *(Answer "yes" if number even otherwise answer "no".)*
- **brain-calc** *(What is the result of the expression?)*
- **brain-gcd** *(Find the greatest common divisor of given numbers.)*
- **brain-balance** *(Balance the given number.)*
- **brain-progression** *(What number is missing in this progression?)*
- **brain-prime** *(Answer "yes" if number prime otherwise answer "no".)*

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine.

### Installing

[](#installing)

**Globally**

Install the package:

```
$ composer global require bondsa/brain-games

```

Add to `PATH` `~/.config/composer/vendor/bin`:

```
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bash_profile

```

Restart the terminal.

Usage
-----

[](#usage)

`$ game-name`, e.g. `$ brain-calc`

Versioning
----------

[](#versioning)

I use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/bondarenkosa/project-lvl1-s276/tags).

Authors
-------

[](#authors)

**Sergei Bondarenko** - [GitHub](https://github.com/bondarenkosa/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Total

22

Last Release

2905d ago

PHP version history (3 changes)0.1.0-alpha.1PHP &gt;=5.4.0

0.2.0PHP &gt;= 5.6.0

0.3.0PHP &gt;= 7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd766515d39a88b9b4678131f14fa6b787ee01a515a529b0c1bf70682dc0b22?d=identicon)[bondsa](/maintainers/bondsa)

---

Top Contributors

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

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[niels-de-blaauw/php-doc-check

Command line tool that identifies code that needs documentation.

43236.3k4](/packages/niels-de-blaauw-php-doc-check)[ecoapm/libyear

A simple measure of software dependency freshness

28302.5k](/packages/ecoapm-libyear)

PHPackages © 2026

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