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

ActiveProject

godedok/php-brain-games
=======================

My first project brain-games on PHP

026PHP

Since Jul 30Pushed 7y agoCompare

[ Source](https://github.com/godedok/project-lvl1-s312)[ Packagist](https://packagist.org/packages/godedok/php-brain-games)[ RSS](/packages/godedok-php-brain-games/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#brain-games)

[![Maintainability](https://camo.githubusercontent.com/8402320647335cd5488f20879488e5afe25109455606aa790969d07374638b4f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66646331343334623335613535323632356661622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/godedok/project-lvl1-s312/maintainability)[![Test Coverage](https://camo.githubusercontent.com/2b09f4a3b5635b4212714cff50c0420e388aeeb29fbef1cd79b14801b094c227/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66646331343334623335613535323632356661622f746573745f636f766572616765)](https://codeclimate.com/github/godedok/project-lvl1-s312/test_coverage)[![Build Status](https://camo.githubusercontent.com/62f52133d81cbf65c4a82469d334537f660932f7868b6f5f1dab821b6c15d96e/68747470733a2f2f7472617669732d63692e6f72672f676f6465646f6b2f70726f6a6563742d6c766c312d733331322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/godedok/project-lvl1-s312)

Install
-------

[](#install)

composer global require godedok/php-brain-games:dev-master

Description
-----------

[](#description)

Brian Games is a set of console mini-games. Type one of the commands, and answer three questions correctly. If you make a mistake, you can start again.

### Use the following commands

[](#use-the-following-commands)

1. Starts the game and asks for your name.

```
$ brain-games

```

[![asciicast](https://camo.githubusercontent.com/8c384e50858217af7eb31198a9cd71e6d4642fdbd41d0b8340d816d248590ce3/68747470733a2f2f61736369696e656d612e6f72672f612f48726b444649447131564d6b5570503662444b5963556a47692e706e67)](https://asciinema.org/a/HrkDFIDq1VMkUpP6bDKYcUjGi)2. Game: "Calculator"

```
$ brain-calc

```

[![asciicast](https://camo.githubusercontent.com/c2e27016b105706944f820075cd3d79a1aadb65a727cb896a363ad136135a601/68747470733a2f2f61736369696e656d612e6f72672f612f4476597a355a7a4a6661644674524c4a4e564743444a4337332e706e67)](https://asciinema.org/a/DvYz5ZzJfadFtRLJNVGCDJC73)3. Game: "Check for parity"

```
$ brain-even

```

[![asciicast](https://camo.githubusercontent.com/115f31e0ed8a77d59d88beb54fadfb159baae45b2595bf854ee41ddba2ec20e3/68747470733a2f2f61736369696e656d612e6f72672f612f6b4e44536f506334494a763230356f78694d314b6675474f512e706e67)](https://asciinema.org/a/kNDSoPc4IJv205oxiM1KfuGOQ)4. Game "Balance"

```
$ brain-balance

```

[![asciicast](https://camo.githubusercontent.com/19e6c17843b5ceee4713c65413d0f818f04a8eb661433582e2a29eb4d77c8a9f/68747470733a2f2f61736369696e656d612e6f72672f612f3034566237396359737664334355534242366d77685350336f2e706e67)](https://asciinema.org/a/04Vb79cYsvd3CUSBB6mwhSP3o)5. The game "The greatest common divisor"

```
$ brain-gcd

```

[![asciicast](https://camo.githubusercontent.com/36e85ad3e02b2999c85276710d754393ec308e957bcbbc1ebd4859b3fe598901/68747470733a2f2f61736369696e656d612e6f72672f612f6d737456485a4f414a7341714c4c443873397a3177715734302e706e67)](https://asciinema.org/a/mstVHZOAJsAqLLD8s9z1wqW40)6. The game "Is it a simple number?"

```
$ brain-prime

```

[![asciicast](https://camo.githubusercontent.com/5d296f3234d4bb76bf65099d67c1e6c3cf284ba76f70c845c30a61b8e93ba4cd/68747470733a2f2f61736369696e656d612e6f72672f612f6862376878754359786d47434f7346623675396d68674139712e706e67)](https://asciinema.org/a/hb7hxuCYxmGCOsFb6u9mhgA9q)7. The game "Arithmetic progression"

```
$ brain-progression

```

[![asciicast](https://camo.githubusercontent.com/23cc9e4de6a6f0117fa1bfa1b8c13b78212394d1c81fbb948af8d3ec2caff4ce/68747470733a2f2f61736369696e656d612e6f72672f612f5a76675a4d385934324668595568766d6e59526f4375304a582e706e67)](https://asciinema.org/a/ZvgZM8Y42FhYUhvmnYRoCu0JX)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d6f31fdd8559fc50b961304775ed2ca414e9430dbae21a62876cb60967599af?d=identicon)[godedok](/maintainers/godedok)

---

Top Contributors

[![godedok](https://avatars.githubusercontent.com/u/40350136?v=4)](https://github.com/godedok "godedok (53 commits)")

### Embed Badge

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

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

PHPackages © 2026

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