PHPackages                             tolyod/project-lvl1-s470 - 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. tolyod/project-lvl1-s470

ActiveProject

tolyod/project-lvl1-s470
========================

Apoloz brain-games

021[2 PRs](https://github.com/tolyod/project-lvl1-s470/pulls)PHP

Since Apr 29Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Brain Games in PHP CLI
======================

[](#brain-games-in-php-cli)

> this is a PHP project that implements simple games that run from the command line.

[![Maintainability](https://camo.githubusercontent.com/1569c37e9ac6bfa6c59bee631756fc9a7d01de13a3cd6f4e10b8d6e33a9082ca/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61393961383864323861643337613739646266362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability)[![Build Status](https://camo.githubusercontent.com/05eda084746796309a88a1f0c071a8172cbe862c6f77a44c26e6ec042e516acb/68747470733a2f2f7472617669732d63692e6f72672f746f6c796f642f57697447616d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tolyod/WitGames)

- [Installation](#Install)
- [brain-even](#brain-even)
- [brain-calc](#brain-calc)
- [brain-gcd](#brain-gcd)
- [brain-progression](#brain-progression)
- [brain-prime](#brain-prime)
- [Why?](#why)
- [Thanks](#thanks)

### Install

[](#install)

to install you need to use *composer* package manager

`$ composer global require tolyod/project-lvl1-s470`

[![brain-games](https://camo.githubusercontent.com/7b8ff88686eba57883843407fabf4bb660d9782533ca281dedd62be7204b48a5/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d67616d65732e676966)](https://camo.githubusercontent.com/7b8ff88686eba57883843407fabf4bb660d9782533ca281dedd62be7204b48a5/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d67616d65732e676966)

### brain-even

[](#brain-even)

the game asks you to answer the question, an even number or not.

[![brain-even](https://camo.githubusercontent.com/ef638669414621ffb5f5de59ee3aa4d86bb66e11bd6058ed4d600c73a2d911aa/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d6576656e2e676966)](https://camo.githubusercontent.com/ef638669414621ffb5f5de59ee3aa4d86bb66e11bd6058ed4d600c73a2d911aa/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d6576656e2e676966)

### brain-calc

[](#brain-calc)

the game asks you to calculate the mathematical expression shown on the screen.

[![brain-calc](https://camo.githubusercontent.com/2554557bcadda5e0fd52635937417297d2091b716a72fc6aab88c3a7b6fcef3f/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d63616c632e676966)](https://camo.githubusercontent.com/2554557bcadda5e0fd52635937417297d2091b716a72fc6aab88c3a7b6fcef3f/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d63616c632e676966)

### brain-gcd

[](#brain-gcd)

the game displays two numbers and asks to calculate the greatest common divisor

[![brain-gcd](https://camo.githubusercontent.com/a7cb9887d475a22f2fc88d1c4b6c43b13d7ad54020b6cbe04233b4bd1a37b6fd/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d6763642e676966)](https://camo.githubusercontent.com/a7cb9887d475a22f2fc88d1c4b6c43b13d7ad54020b6cbe04233b4bd1a37b6fd/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d6763642e676966)

### brain-progression

[](#brain-progression)

the game displays a sequence of arithmetic progression and asks to enter the missing number

[![brain-progression](https://camo.githubusercontent.com/e5f68d87956e723ef4c48ba6c5193d35f51092869820ac7af3ba474e03c8149d/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d70726f6772657373696f6e2e676966)](https://camo.githubusercontent.com/e5f68d87956e723ef4c48ba6c5193d35f51092869820ac7af3ba474e03c8149d/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d70726f6772657373696f6e2e676966)

### brain-prime

[](#brain-prime)

the game shows a random number and ask to answer is a Prime number or not

[![brain-prime](https://camo.githubusercontent.com/bf63d1cc86b4fcdfc96b1fc76e79e651f00951d4c0727d974fbcaf955cb1f79f/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d7072696d652e676966)](https://camo.githubusercontent.com/bf63d1cc86b4fcdfc96b1fc76e79e651f00951d4c0727d974fbcaf955cb1f79f/68747470733a2f2f746f6c796f642e6769746875622e696f2f696d616765732f627261696e2d7072696d652e676966)

why
---

[](#why)

for practice, training and study

thanks
------

[](#thanks)

to [Hexlet](https://hexlet.io) community, Kirill Mokevnin, and mentor from Hexlet for directing me to the right direction.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.5% 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/727a8fd577cb5973510d15dacd4738b26d28d735c97c2431766df060f2e65673?d=identicon)[anatoliy\_od](/maintainers/anatoliy_od)

---

Top Contributors

[![tolyod](https://avatars.githubusercontent.com/u/1892972?v=4)](https://github.com/tolyod "tolyod (54 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")

### Embed Badge

![Health badge](/badges/tolyod-project-lvl1-s470/health.svg)

```
[![Health](https://phpackages.com/badges/tolyod-project-lvl1-s470/health.svg)](https://phpackages.com/packages/tolyod-project-lvl1-s470)
```

PHPackages © 2026

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