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

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

eq/hexlet-brain-games
=====================

2.0.0(8y ago)066PHP

Since Oct 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/orion122/brain-games)[ Packagist](https://packagist.org/packages/eq/hexlet-brain-games)[ RSS](/packages/eq-hexlet-brain-games/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

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

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/883529544b74579d078ff2b40920af748f49e80df25991b459d888888eb32f10/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37653532663232376533343762383964323231322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/orion122/brain-games/maintainability)[![Issue Count](https://camo.githubusercontent.com/fed9ac01c14688fec191152633e5157085bd415cc59a828a56bb32619abe3bc0/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6f72696f6e3132322f627261696e2d67616d65732f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/orion122/brain-games)[![Build Status](https://camo.githubusercontent.com/76fa3ac80f141d2a99d97adc03645046b9019d852d3c1dbc27a736ffb94513c0/68747470733a2f2f7472617669732d63692e6f72672f6f72696f6e3132322f627261696e2d67616d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/orion122/brain-games)

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

[](#description)

Simple CLI-games:

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

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

[](#installation)

`$ composer require eq/hexlet-brain-games`

Usage
-----

[](#usage)

- `$ ~/vendor/bin/brain-balance`
- `$ ~/vendor/bin/brain-calc`
- `$ ~/vendor/bin/brain-even`
- `$ ~/vendor/bin/brain-prime`
- `$ ~/vendor/bin/brain-gcd`
- `$ ~/vendor/bin/brain-progression`

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

3

Last Release

3188d ago

Major Versions

1.0.1 → 2.0.02017-10-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d6dd7d7b7f9be6ace3c3ce52aa8beccf4d87e591b8d0cdf83ac29b189b9fc66?d=identicon)[eq](/maintainers/eq)

---

Top Contributors

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

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

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

Command line tool that identifies code that needs documentation.

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

A simple measure of software dependency freshness

28305.1k](/packages/ecoapm-libyear)

PHPackages © 2026

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