PHPackages                             malcom/braingames - 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. malcom/braingames

ActiveProject

malcom/braingames
=================

hexlet php project level 1

v1.5.3(6y ago)013MITPHP

Since Nov 28Pushed 6y agoCompare

[ Source](https://github.com/Malcom1986/php-project-lvl1)[ Packagist](https://packagist.org/packages/malcom/braingames)[ RSS](/packages/malcom-braingames/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

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

[](#brain-games)

Hexlet PHP project - level 1
----------------------------

[](#hexlet-php-project---level-1)

[![Maintainability](https://camo.githubusercontent.com/0b19853f0e689aaf9c711650928ee30f81cbbd36aa9469c0dcfdd2282fa073a0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34343738633330383638643465633431626564362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Malcom1986/php-project-lvl1/maintainability) [![Build Status](https://camo.githubusercontent.com/41d9de2ff746685e4809319e6d69a98294610976fe98c16d7be0295d997f3230/68747470733a2f2f7472617669732d63692e6f72672f4d616c636f6d313938362f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Malcom1986/php-project-lvl1)

This repository contains Brain Games. This is a set of mini games launched from the console.

---

### Install:

[](#install)

`$ composer global require malcom/braingames`

---

### Games:

[](#games)

#### 1. "Parity Check"

[](#1-parity-check)

Answer **yes** if the number is even, otherwise answer **no**

##### Launch

[](#launch)

`$ brain-even`

[![asciicast](https://camo.githubusercontent.com/31a277385f05e6a0a75e05b77e50b5242499d99980b43d5fdc1696c055a61d16/68747470733a2f2f61736369696e656d612e6f72672f612f68436b3276774a32394f5268416a38766453664d6f304559682e737667)](https://asciinema.org/a/hCk2vwJ29ORhAj8vdSfMo0EYh)

---

#### 2. "Calculator"

[](#2-calculator)

Find is the result of the expression

##### Launch

[](#launch-1)

`$ brain-calc`

[![asciicast](https://camo.githubusercontent.com/90ae953cb192aeece93b2698f4ec45486121204254dbd56e6721c00f098dac1e/68747470733a2f2f61736369696e656d612e6f72672f612f517466663265614b3061516b4b69536951685942637961496d2e737667)](https://asciinema.org/a/Qtff2eaK0aQkKiSiQhYBcyaIm)

---

#### 3. "Greatest common divisor"

[](#3-greatest-common-divisor)

Find the greatest common divisor of given numbers

##### Launch

[](#launch-2)

`$ brain-gcd`

[![asciicast](https://camo.githubusercontent.com/0f76760d54fbfe4bd31378c64b48d662cc1ac1dd29932666236af937fb0d3241/68747470733a2f2f61736369696e656d612e6f72672f612f5376776b4345434171446b71504f3348696c6e6669526a354f2e737667)](https://asciinema.org/a/SvwkCECAqDkqPO3HilnfiRj5O)

---

#### 4. "Progression"

[](#4-progression)

Find missing number in the progression

##### Launch

[](#launch-3)

`$ brain-progression`

[![asciicast](https://camo.githubusercontent.com/420300ef29af5f640e4b11cbdeb91bf28a15ad421e60d9743f38456e13f88477/68747470733a2f2f61736369696e656d612e6f72672f612f464e704f4752684d4c77525455425852476b54576e576854462e737667)](https://asciinema.org/a/FNpOGRhMLwRTUBXRGkTWnWhTF)

---

#### 5. "Is a prime"

[](#5-is-a-prime)

Answer **yes** if given number is prime. Otherwise answer **no**

`$ brain-prime`

[![asciicast](https://camo.githubusercontent.com/af228f5c408def88915ec81cf8e6a511e26c399b026e9217ced5ca38b5fdb871/68747470733a2f2f61736369696e656d612e6f72672f612f66644933657841304a5844765a637a71594f52697a647a65582e737667)](https://asciinema.org/a/fdI3exA0JXDvZczqYORizdzeX)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

Total

4

Last Release

2354d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124141?v=4)[Marcin Malich](/maintainers/Malcom)[@malcom](https://github.com/malcom)

---

Top Contributors

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

---

Tags

gamelogicbraingame

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/malcom-braingames/health.svg)

```
[![Health](https://phpackages.com/badges/malcom-braingames/health.svg)](https://phpackages.com/packages/malcom-braingames)
```

###  Alternatives

[unclecheese/display-logic

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

771.0M101](/packages/unclecheese-display-logic)

PHPackages © 2026

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