PHPackages                             rinatsin/php-project-lvl1 - 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. rinatsin/php-project-lvl1

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

rinatsin/php-project-lvl1
=========================

PHP Project implements the Brain Games

2.4(6y ago)01301MITPHP

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Rinatsin/php-project-lvl1)[ Packagist](https://packagist.org/packages/rinatsin/php-project-lvl1)[ RSS](/packages/rinatsin-php-project-lvl1/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (72)Used By (0)

php-project-lvl1
================

[](#php-project-lvl1)

[![Maintainability](https://camo.githubusercontent.com/44bdb0e37fe78bea143ea6e44e2e86da867fc7459dc81ec12a834774f6cb6ac2/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66376533623561623038306662653032383262652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Rinatsin/php-project-lvl1/maintainability)[![Build Status](https://camo.githubusercontent.com/b66807b2f497adeabc703cfb7f8621d41c1666d03a78ed9af065b0d7ec76d42d/68747470733a2f2f7472617669732d63692e6f72672f52696e617473696e2f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Rinatsin/php-project-lvl1)

Этот репозиторий содержит реализацию первого проекта обучающего портала Hexlet, Brain Games! В проекте представлено 5 мини игр командной строки:

- brain-even - проверка на четность. В игре необходимо ответить является число четным или же нет.
- brain-calc - калькулятор. В игре необходимо сложить, вычесть или же умножить два числа и дать верный ответ.
- brain-gcd - наибольший общий делитель. В игре необходимо найти наибольший общий делитель двух чисел и дать верный ответ.
- brain-progression - арифметическая прогрессия. В игре необходимо найти пропущеный элемент арифметической прогрессии.
- brain-prime - проверка на простоту. В игре необходимо ответить простое ли представленное число или нет.

Для запуска игры достаточно ввести название игры в командной строке.

### Install with Composer

[](#install-with-composer)

use **composer global require rinatsin/php-project-lvl1**

[![asciicast](https://camo.githubusercontent.com/08fef6173de65c7cd845209a795969af16af6153d928f4b8d095d3af5d7be28f/68747470733a2f2f61736369696e656d612e6f72672f612f766f6150566c7036375330774745626a334b36356f546430702e737667)](https://asciinema.org/a/voaPVlp67S0wGEbj3K65oTd0p)

### Example game Brain-even

[](#example-game-brain-even)

[![asciicast](https://camo.githubusercontent.com/fc2d1b45e61102139d8293c81b6f9508806ddefc2e671a2df2128aea4ef7f5f5/68747470733a2f2f61736369696e656d612e6f72672f612f3236393732342e737667)](https://asciinema.org/a/269724)

### Example game Brain-calc

[](#example-game-brain-calc)

[![asciicast](https://camo.githubusercontent.com/2283c6d73441ffc550316ce4489c83b518ac49158cf56369744d3a214624f8be/68747470733a2f2f61736369696e656d612e6f72672f612f79585150706845703836304551713157704363666339444e762e737667)](https://asciinema.org/a/yXQPphEp860EQq1WpCcfc9DNv)

### Example game Brain-gcd

[](#example-game-brain-gcd)

[![asciicast](https://camo.githubusercontent.com/0ad8fe232bfcaee0b71aac57f5fb5ac2de07744673bc31519fdf4cfbfb4c1db3/68747470733a2f2f61736369696e656d612e6f72672f612f6b75636d4b30356d715244783749626f4436696d487a4d41322e737667)](https://asciinema.org/a/kucmK05mqRDx7IboD6imHzMA2)

### Example game Brain-progression

[](#example-game-brain-progression)

[![asciicast](https://camo.githubusercontent.com/13d0d3c0f60483fbcdba6d3aed1c756c24ed6455d4f566ab8157ed0d5e5c6258/68747470733a2f2f61736369696e656d612e6f72672f612f74314e7976635179636d755370647452485274686a49577a452e737667)](https://asciinema.org/a/t1NyvcQycmuSpdtRHRthjIWzE)

### Example game Brain-prime

[](#example-game-brain-prime)

[![asciicast](https://camo.githubusercontent.com/d1fa705a5115ab73f1baa738eeef44d64d412c0782fae3b99be58ca1a938a52c/68747470733a2f2f61736369696e656d612e6f72672f612f6f536247455654514a5133704e765a6c79617836455a574f712e737667)](https://asciinema.org/a/oSbGEVTQJQ3pNvZlyax6EZWOq)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

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

Total

71

Last Release

2386d ago

Major Versions

1.9.92 → 2.02019-10-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f8925f3a5b3875b7e724fb8b5e1c36f4009661d58922ba39c358c2800e17e6e?d=identicon)[rinatsin](/maintainers/rinatsin)

---

Top Contributors

[![Rinatsin](https://avatars.githubusercontent.com/u/47227305?v=4)](https://github.com/Rinatsin "Rinatsin (128 commits)")

---

Tags

phpcligamesbrain

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rinatsin-php-project-lvl1/health.svg)

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

###  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)[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)
