PHPackages                             mariya/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. [CLI &amp; Console](/categories/cli)
4. /
5. mariya/brain-games

ActiveProject[CLI &amp; Console](/categories/cli)

mariya/brain-games
==================

The first PHP project, a set of console mini-games

v1.0.0(6y ago)024PHP

Since Jun 18Pushed 6y agoCompare

[ Source](https://github.com/Mariya1316/project-lvl1-s458)[ Packagist](https://packagist.org/packages/mariya/brain-games)[ RSS](/packages/mariya-brain-games/feed)WikiDiscussions master Synced today

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

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

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/0cfdc4bdfc711f94250f282751fe97887eba045ab699c63ed50293857189436a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31333539666637666636303163646233333633342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Mariya1316/project-lvl1-s458/test_coverage)[![Build Status](https://camo.githubusercontent.com/fcf794d119fe9fcee0f1913c8b482288a8b8549f683dfb708ce33ca60ad78de1/68747470733a2f2f7472617669732d63692e6f72672f4d6172697961313331362f427261696e2d47616d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Mariya1316/Brain-Games)

The first PHP project, a set of console mini-games

Sample gameplay
---------------

[](#sample-gameplay)

```
$ brain-progression

Welcome to the Brain Game!
What number is missing in this progression?

May I have your name? Roman
Hello, Roman!

Question: 14 .. 18 20 22 24 26 28
Your answer: 16
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24
Correct!
Congratulations, Roman!

```

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

[](#installation)

Via Composer

```
$ composer require mariya/brain-games

```

Running games
-------------

[](#running-games)

Parity check:

```
$ brain-even

```

Calculator:

```
$ brain-calc

```

Greatest common divisor:

```
$ brain-gcd

```

Arithmetic progression:

```
$ brain-progression

```

Simple number:

```
$ brain-prime

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

2518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de00fb32f4699d0273569f2645c3a3baf6a420a119b6719adfaa0a07905f35f7?d=identicon)[Mariya1316](/maintainers/Mariya1316)

---

Top Contributors

[![Mariya1316](https://avatars.githubusercontent.com/u/34185257?v=4)](https://github.com/Mariya1316 "Mariya1316 (31 commits)")

---

Tags

phpconsoleprojectbraingames

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

29211.3k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

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