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

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

lev/php-project-lvl1
====================

First php project on hexlet.io. Five mini games for CLI

09PHP

Since Jul 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lev0607/First-PHP-project-CLI-games)[ Packagist](https://packagist.org/packages/lev/php-project-lvl1)[ RSS](/packages/lev-php-project-lvl1/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4e202f368c9669a99a8169586ddfa16a3e79d3c28a53768bb8a4cdbd5a9375e8/68747470733a2f2f7472617669732d63692e6f72672f6c6576303630372f7068702d70726f6a6563742d6c766c312e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lev0607/php-project-lvl1)[![Code Climate](https://camo.githubusercontent.com/3c179082b16cf3830a3ca84d9b5a3cd52e327243dded662904629126636e68c6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c6576303630372f7068702d70726f6a6563742d6c766c312f6261646765732f6770612e737667)](https://codeclimate.com/github/lev0607/php-project-lvl1)[![Issue Count](https://camo.githubusercontent.com/1e10d8dc8940aa185659f039148cf211eafc85fdec509ee5dd0f7165cde808a9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c6576303630372f7068702d70726f6a6563742d6c766c312f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/lev0607/php-project-lvl1)

Первый учебный проект
=====================

[](#первый-учебный-проект)

Набор из пяти консольных мини игр. Игра задает вопрос. После трех правильных ответов считается, что игра пройдена. Неправильные ответы завершают игру и предлагают пройти ее заново.

#### Игры:

[](#игры)

- Калькулятор. Поддерживает арифметические выражения ####.
- Прогрессия. Поиск пропущенных чисел в последовательности чисел.
- Определение четного числа.
- Определение наибольшего общего делителя.
- Определение простого числа.

Пример игры:

```
$ 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!

```

### Install all games

[](#install-all-games)

1. `composer global require lev/php-project-lvl1:dev-master`

[![asciicast](https://camo.githubusercontent.com/36c7e95e5f31da48ac6230c2dbce6ccf9bb8661339cb115fff74bca20784b8e9/68747470733a2f2f61736369696e656d612e6f72672f612f667737616656323163656f4d634f6768553775464c737a43712e737667)](https://asciinema.org/a/fw7afV21ceoMcOghU7uFLszCq)

### Run game

[](#run-game)

1. `brain-even`

[![asciicast](https://camo.githubusercontent.com/59847a2753119c9c81fe20838cea14e47da5535692ee89c8d5aa523bf8b14f26/68747470733a2f2f61736369696e656d612e6f72672f612f4e3837574e4c433653786f766c644748417a516176534235712e737667)](https://asciinema.org/a/N87WNLC6SxovldGHAzQavSB5q)

2. `brain-calc`

[![asciicast](https://camo.githubusercontent.com/2a7d9bb091b92be7137d70edcc1aa4c4ea6f6a25960be775cb5b0994ff193341/68747470733a2f2f61736369696e656d612e6f72672f612f774d3330576b565a544a6d703173775354636653696b6d6b552e737667)](https://asciinema.org/a/wM30WkVZTJmp1swSTcfSikmkU)

3. `brain-gcd`

[![asciicast](https://camo.githubusercontent.com/07b3e324038387043de07968174a37c3d4c50660cda39b28bd562a6bf90ff594/68747470733a2f2f61736369696e656d612e6f72672f612f585342696a4c336b6c3844624c4f4c6c426b33686c623077512e737667)](https://asciinema.org/a/XSBijL3kl8DbLOLlBk3hlb0wQ)

4. `brain-progression`

[![asciicast](https://camo.githubusercontent.com/f27dd60b452a8be9ea3072ab571a5b83bf58ded9afb48363c44058c66ef40674/68747470733a2f2f61736369696e656d612e6f72672f612f4b3531636f734661326f6b5a4d674f59443733455672586b572e737667)](https://asciinema.org/a/K51cosFa2okZMgOYD73EVrXkW)

5. `brain-prime`

[![asciicast](https://camo.githubusercontent.com/7fd40eaef33984ed095606e20dee4441b6680c0719038a5b45997295dea0cdf1/68747470733a2f2f61736369696e656d612e6f72672f612f565357374a485751425450586b39745865376b6442625462772e737667)](https://asciinema.org/a/VSW7JHWQBTPXk9tXe7kdBbTbw)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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/21afa4f9a38a5435697068b908db164656693b489d97a457e59a014340a76a9e?d=identicon)[lev36rus](/maintainers/lev36rus)

---

Top Contributors

[![lev0607](https://avatars.githubusercontent.com/u/9625798?v=4)](https://github.com/lev0607 "lev0607 (23 commits)")

---

Tags

cli-appphp

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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