PHPackages                             dr-krokdi/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dr-krokdi/php-project-lvl1

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dr-krokdi/php-project-lvl1
==========================

Brain Games

00PHP

Since Jul 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/archi0619/php-project-lvl1)[ Packagist](https://packagist.org/packages/dr-krokdi/php-project-lvl1)[ RSS](/packages/dr-krokdi-php-project-lvl1/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Brain Games
-----------

[](#brain-games)

Hexlet tests and linter status:
-------------------------------

[](#hexlet-tests-and-linter-status)

[![Actions Status](https://github.com/archi0619/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/archi0619/php-project-lvl1/actions)

[![Maintainability](https://camo.githubusercontent.com/27560d420c7fc1dd7b7742425a007d9f1f4f1b28c702bc7ad22f25f46eb69fe6/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61373963353764616264623137613734653833342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/archi0619/php-project-lvl1/maintainability)

[![PHPCS TEST](https://github.com/archi0619/php-project-lvl1/actions/workflows/phpcstest.yml/badge.svg?branch=main)](https://github.com/archi0619/php-project-lvl1/actions/workflows/phpcstest.yml)

Brain Games is a 5 console games:

1. 'brain-even'. You should answer, is number even or not.
2. 'brain-calc'. Find the result of expression.
3. 'brain-gcd'. Find the greatest common divisor (GCD) of two numbers.
4. 'brain-progression'. Wright the missed number in progression.
5. 'brain-prime'. Answer the question 'Is given number is prime?'.

Requirements:
-------------

[](#requirements)

1. PHP 7 and more.
2. Composer (global installed).

Setup
-----

[](#setup)

```
$ git clone https://github.com/archi0619/php-project-lvl1.git
$ cd php-project-lvl1
$ make install
```

Start game:
-----------

[](#start-game)

Use comman 'make' with name of the game, for example:

```
$ make brain-even
$ make brain-calc
```

Or use command:

./bin/name\_of\_the\_game

Games demonstration:
--------------------

[](#games-demonstration)

brain-even game: [![asciicast](https://camo.githubusercontent.com/acb7fb488462739154647fcbb96517873c6450452c5c9c1f6f0e2393bc5f3622/68747470733a2f2f61736369696e656d612e6f72672f612f74786c4e546947453365526a674e5a776d797769784f3170682e737667)](https://asciinema.org/a/txlNTiGE3eRjgNZwmywixO1ph)

brain-calc game: [![asciicast](https://camo.githubusercontent.com/c0b64b1cd4683ef460a461bedc12426318999c4eaa3da85146b6ee2a4e6c00eb/68747470733a2f2f61736369696e656d612e6f72672f612f554d314d49447944426a7a35696446664162763761324872442e737667)](https://asciinema.org/a/UM1MIDyDBjz5idFfAbv7a2HrD)

brain-gcd game: [![asciicast](https://camo.githubusercontent.com/7eb200f7cf2215fa6c6d5de5a608e205ace5cc2ff8d50f316ba81edcb5df07a4/68747470733a2f2f61736369696e656d612e6f72672f612f6a50456d6e6434544c414d56553131466b52534f55495142452e737667)](https://asciinema.org/a/jPEmnd4TLAMVU11FkRSOUIQBE)

brain-progression game: [![asciicast](https://camo.githubusercontent.com/3ad85dcb405f09d38d582a5fe43fe8e6f9b1b52b65ec2f32fd78417c9e62a6e4/68747470733a2f2f61736369696e656d612e6f72672f612f6c6f68333838555741344768323841745958484f5a64596e342e737667)](https://asciinema.org/a/loh388UWA4Gh28AtYXHOZdYn4)

brain-prime game: [![asciicast](https://camo.githubusercontent.com/489102d46f80dd6b96edf54551fa98f0bc49e24707aee9a8ac7933bab19e30d0/68747470733a2f2f61736369696e656d612e6f72672f612f334774524b6c6e61465a424369584159485931544a703455552e737667)](https://asciinema.org/a/3GtRKlnaFZBCiXAYHY1TJp4UU)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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/78ae8d7d1fa036a83b1f3952409cf8eba2532c1011f2aa8264492a8defb8312f?d=identicon)[DR.Krokdi](/maintainers/DR.Krokdi)

---

Top Contributors

[![archi0619](https://avatars.githubusercontent.com/u/101950316?v=4)](https://github.com/archi0619 "archi0619 (106 commits)")

### Embed Badge

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

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

###  Alternatives

[stuttter/wp-user-profiles

A sophisticated way to edit users in WordPress

11219.3k1](/packages/stuttter-wp-user-profiles)[fof/analytics

Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo

3543.1k](/packages/fof-analytics)[chrico/wp-fields

Package which provides some re-usable fields for WordPress.

1981.2k](/packages/chrico-wp-fields)[aertmann/history

An improved history backend module for Neos

1070.2k](/packages/aertmann-history)

PHPackages © 2026

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