PHPackages                             konstantin/hex\_project01 - 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. konstantin/hex\_project01

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

konstantin/hex\_project01
=========================

Hexlet Project01 - Brain Games!

v1.1.2(6y ago)031[1 issues](https://github.com/Konstantin-GIT/php-project-lvl1/issues)PHP

Since Jul 1Pushed 6y agoCompare

[ Source](https://github.com/Konstantin-GIT/php-project-lvl1)[ Packagist](https://packagist.org/packages/konstantin/hex_project01)[ RSS](/packages/konstantin-hex-project01/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Brain-Games
===========

[](#brain-games)

[![Build Status](https://camo.githubusercontent.com/c6de60fe026ed970d46ea952282a235860bddbc42a4a25df11a067d780e98e2a/68747470733a2f2f7472617669732d63692e636f6d2f4b6f6e7374616e74696e2d4749542f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Konstantin-GIT/php-project-lvl1)

[![Maintainability](https://camo.githubusercontent.com/af08fd45474982d1d8fe8bcfbbf0e14fa2915942a0edaaab26924479a1ec1e1a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37653739353961353331386232333665316233302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Konstantin-GIT/php-project-lvl1/maintainability)

### Description

[](#description)

Brain-Games - это набор мини-игр, запускаемых из консоли. Данная реализация игр велась в рамках курсов по программированию и выполнения проекта на обучающем ресурсе [Hexlet](https://ru.hexlet.io/professions/php/projects/45).

### 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-prime - answer "yes" if given number is prime. Otherwise answer "no".
- brain-progression - what number is missing in the progression?

### Install

[](#install)

```
$ composer global require konstantin/hex_project01
add ~/.composer/vendor/bin to your PATH
```

### Run

[](#run)

```
$ brain-even
$ brain-calc
$ brain-gcd
$ brain-prime
$ brain-progression
```

### Example:

[](#example)

[![](https://camo.githubusercontent.com/9eb1c71a2ec86a788eb02a3660d4973b2e45652a33e3ce607e936bf70b6c9274/68747470733a2f2f61736369696e656d612e6f72672f612f6945306e316c4141566d4e447a66754a7948433669667162612e737667)](https://asciinema.org/a/iE0n1lAAVmNDzfuJyHC6ifqba)

### Project implementation steps:

[](#project-implementation-steps)

step 1:

step 2:

step 4:

step 5:

step 6:

step 7:

step 8:

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity68

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

Total

18

Last Release

2531d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40121468?v=4)[Konstantin-GIT](/maintainers/Konstantin-GIT)[@Konstantin-GIT](https://github.com/Konstantin-GIT)

---

Top Contributors

[![Konstantin-GIT](https://avatars.githubusercontent.com/u/40121468?v=4)](https://github.com/Konstantin-GIT "Konstantin-GIT (37 commits)")

---

Tags

gamesbrain gamesbrain-evenbrain-calcbrain-gcdbrain-progressionbrain-prime

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/konstantin-hex-project01/health.svg)

```
[![Health](https://phpackages.com/badges/konstantin-hex-project01/health.svg)](https://phpackages.com/packages/konstantin-hex-project01)
```

PHPackages © 2026

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