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

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

yakimov/brain-games
===================

Brain-games project

00PHP

Since Jan 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yakimov86/php-project-lvl1)[ Packagist](https://packagist.org/packages/yakimov/brain-games)[ RSS](/packages/yakimov-brain-games/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

php-project-lvl1
================

[](#php-project-lvl1)

[![Maintainability](https://camo.githubusercontent.com/99118366ff00a8f0ce60f7b3e3271cd489fc039564d1cbf5ab07293e27d1f26f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30626439623732313637343262373234363166302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yakimov86/php-project-lvl1/maintainability)[![Build Status](https://camo.githubusercontent.com/b291c1c6b9eaea576808706c46b8a045fa588762ebb23c9c5c7110ba2151c47c/68747470733a2f2f7472617669732d63692e6f72672f79616b696d6f7638362f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d61696e)](https://travis-ci.org/yakimov86/php-project-lvl1)

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 yakimov/brain-games:dev-master
add ~/.composer/vendor/bin to your PATH
$ echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
$ export PATH="$PATH:$HOME/.composer/vendor/bin"
```

### Run

[](#run)

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

Install with Composer
=====================

[](#install-with-composer)

[![asciicast](https://camo.githubusercontent.com/fedecf1dc836cea0c9533fb96ae502468720ca46e41bd80e194343201f94e6e3/68747470733a2f2f61736369696e656d612e6f72672f612f3237343830312e737667)](https://asciinema.org/a/274801)

Example game Brain-even
=======================

[](#example-game-brain-even)

[![asciicast](https://camo.githubusercontent.com/5ca92677e741166daabdded26eb1d7518aa035561050fd4a2adfa563373355ef/68747470733a2f2f61736369696e656d612e6f72672f612f5748724b4a4c5849366e486d4d34356a433244426e724276722e737667)](https://asciinema.org/a/WHrKJLXI6nHmM45jC2DBnrBvr)

Example game Brain-calc
=======================

[](#example-game-brain-calc)

[![asciicast](https://camo.githubusercontent.com/2452bf7e5f762cec1276814b584e49939028b437d344af9a7cb4e4908890bc9a/68747470733a2f2f61736369696e656d612e6f72672f612f4e62636a4c564a504b45496d6f635179434c734b69496574772e737667)](https://asciinema.org/a/NbcjLVJPKEImocQyCLsKiIetw)

Example game Brain-gcd
======================

[](#example-game-brain-gcd)

[![asciicast](https://camo.githubusercontent.com/84c2ece01da9542447c772de861c32f96feca0445d2082eb55cf6ea8f8cbbdb5/68747470733a2f2f61736369696e656d612e6f72672f612f425443324b7a317737557454697157797059333651546733422e737667)](https://asciinema.org/a/BTC2Kz1w7UtTiqWypY36QTg3B)

Example game Brain-progression
==============================

[](#example-game-brain-progression)

[![asciicast](https://camo.githubusercontent.com/eb036aa0ae91a2c8f8e4bcf5cdff2421d0241a17e6e0049b935bf61c20a0f34c/68747470733a2f2f61736369696e656d612e6f72672f612f3444574262304a786f34575a67547a4a654439714c78566e6f2e737667)](https://asciinema.org/a/4DWBb0Jxo4WZgTzJeD9qLxVno)

Example game Brain-prime
========================

[](#example-game-brain-prime)

[![asciicast](https://camo.githubusercontent.com/503c72deb96e533a5144dbc6e1f5fea26f6682730d9c5b39075be629d1c35c7b/68747470733a2f2f61736369696e656d612e6f72672f612f5a6a3555425838534156525a587779486575645864414a53782e737667)](https://asciinema.org/a/Zj5UBX8SAVRZXwyHeudXdAJSx)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e90d129abeecd66038e1f20d46999a9924c4af95249093c7fdf7eb349e8c1df6?d=identicon)[Yakimov.dev](/maintainers/Yakimov.dev)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[davidpiesse/nova-phpinfo

Display PHPInfo data

13156.5k](/packages/davidpiesse-nova-phpinfo)[maurymmarques/minify-plugin

A CakePHP plugin that facilitates the use of PHP Minify with CakePHP

595.3k](/packages/maurymmarques-minify-plugin)[dnadesign/silverstripe-advanceddropdowns

DropdownField and GroupedDropdownField that allows the use of data-attributes on each option tag

1717.4k](/packages/dnadesign-silverstripe-advanceddropdowns)

PHPackages © 2026

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