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

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

fidilly/brain-games
===================

the first PHP project

v1.9.3(7y ago)038PHP

Since Apr 1Pushed 6y agoCompare

[ Source](https://github.com/fidilly/project-lvl1-s470)[ Packagist](https://packagist.org/packages/fidilly/brain-games)[ RSS](/packages/fidilly-brain-games/feed)WikiDiscussions master Synced 2mo ago

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

Brain games
===========

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/b574a6b3f281666055a53860040ceaabe4f17a46fc522d00b11ed3a80c162022/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31616534323732643664323635333139623539332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/fidilly/project-lvl1-s470/maintainability) [![Test Coverage](https://camo.githubusercontent.com/2b7726a7e071f1ba023a4d9d44c4fa274bab41019352a0bce0e9da7c5b6f9474/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31616534323732643664323635333139623539332f746573745f636f766572616765)](https://codeclimate.com/github/fidilly/project-lvl1-s470/test_coverage) [![Build Status](https://camo.githubusercontent.com/6dfbb8cc3b30d5cb662a7486cbda47ebf61d90a8036c47fbcdb4df3209bc45fb/68747470733a2f2f7472617669732d63692e6f72672f666964696c6c792f70726f6a6563742d6c766c312d733437302e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fidilly/project-lvl1-s470)

Brain games is a small project that contains several games. The project contains the following games:

- brain-games
- brain-even
- brain-calc
- brain-gcd
- brain-progression
- brain-prime

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

[](#installation)

Brain games can be installed globally or locally, with ***Composer*** package manager:

### Global installation:

[](#global-installation)

```
composer global require fidilly/brain-games

```

**example:**

[![asciicast](https://camo.githubusercontent.com/383cf5e50bc06e6f6f05a92e95b65ad6517ab3401a9c7383e764296e30f2ae42/68747470733a2f2f61736369696e656d612e6f72672f612f3233393230362e737667)](https://asciinema.org/a/239206)

### Local installation:

[](#local-installation)

```
composer create-project fidilly/brain-games

```

**example:**

[![asciicast](https://camo.githubusercontent.com/bab157a0ee36a466e4c275f35637bed37548a069982001a81bb1e87e0f7ca412/68747470733a2f2f61736369696e656d612e6f72672f612f3233393230382e737667)](https://asciinema.org/a/239208)

Uninstall
---------

[](#uninstall)

If the game is installed globally:

```
composer global remove fidilly/brain-games

```

**example:**

[![asciicast](https://camo.githubusercontent.com/1f90ce4dd5076b4756ec0129b9991f08a3e825ff0c99f3e662d0fa262f159c31/68747470733a2f2f61736369696e656d612e6f72672f612f3233393230392e737667)](https://asciinema.org/a/239209)

If the game is installed locally, then delete the brain-games directory.

Description and usage
---------------------

[](#description-and-usage)

To start the game, enter the name of the game in the terminal.

### brain-games

[](#brain-games-1)

Says Hello to user.

**example:**

[![asciicast](https://camo.githubusercontent.com/73890e8ec3ac15cc6c84ec46f6dbaf7d60793f994b636c6dc4be5cb4ab982a0d/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231312e737667)](https://asciinema.org/a/239211)

### brain-even

[](#brain-even)

You must answer an even number or not.

**example:**

[![asciicast](https://camo.githubusercontent.com/84536f01beff50693cc0a339f1e75b1bcf4f4daa2ea7a768be680a12dedc5202/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231322e737667)](https://asciinema.org/a/239212)

### brain-calc

[](#brain-calc)

You need to calculate the mathematical expression shown on the screen.

**example:**

[![asciicast](https://camo.githubusercontent.com/efb6be825e3371be9648060d8a73db558ddfeed2b4569d044fd471b9e8242a70/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231332e737667)](https://asciinema.org/a/239213)

### brain-gcd

[](#brain-gcd)

You need to find the greatest common divisor.

**example:**

[![asciicast](https://camo.githubusercontent.com/c3493831b58a5a861611d5b4a181e746c8405a597a87c114660b38aa3e38ada5/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231342e737667)](https://asciinema.org/a/239214)

### brain-progression

[](#brain-progression)

You need to find missing number from progression.

**example:**

[![asciicast](https://camo.githubusercontent.com/547168675c03e66e9a5ca6cbfd4114baa76ad10b4ba0bacd3874ff4e59db2140/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231352e737667)](https://asciinema.org/a/239215)

### brain-prime

[](#brain-prime)

You need to check is the number simple or not.

**example:**

[![asciicast](https://camo.githubusercontent.com/b4b3474d7cc3d15146f54e9f6fa853bffc9be61052eb8062fadeafe6f1ee760f/68747470733a2f2f61736369696e656d612e6f72672f612f3233393231382e737667)](https://asciinema.org/a/239218)

###  Health Score

28

—

LowBetter than 54% 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 ~0 days

Total

17

Last Release

2590d ago

### Community

Maintainers

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

---

Top Contributors

[![fidilly](https://avatars.githubusercontent.com/u/36198217?v=4)](https://github.com/fidilly "fidilly (51 commits)")

---

Tags

phpcliprojectgame

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[nunomaduro/termwind

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

2.5k239.8M285](/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)[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)
