PHPackages                             free-donut/hexlet - 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. free-donut/hexlet

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

free-donut/hexlet
=================

my first project

v2.2.5(6y ago)123MITPHP

Since Apr 23Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (21)Used By (0)

project-lvl1-s482. Brain games
==============================

[](#project-lvl1-s482-brain-games)

[![Maintainability](https://camo.githubusercontent.com/4981d57134c9ab8400e8afaffcbc11f8079b70e273570a4472969cb5dbaa5961/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36303631343365333037306261653238363964332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/free-donut/project-lvl1-s482/maintainability)

[![Build Status](https://camo.githubusercontent.com/ce37ee1ed68b53614ae82643c13efb5f08178a59871cdbd68b650e61d72884e3/68747470733a2f2f7472617669732d63692e6f72672f667265652d646f6e75742f70726f6a6563742d6c766c312d733438322e427261696e2d67616d65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/free-donut/project-lvl1-s482.Brain-games)

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

[](#description)

Brain games is a set of mini-games launched from the console.

- brain-even (Answer "yes" if number even otherwise answer "no".)
- brain-calc (What is the result of the expression?)
- brain-gcd (Find the greatest common divisor of given numbers.)
- brain-progression (What number is missing in this progression?)
- brain-prime (Answer "yes" if number prime otherwise answer "no".)

Installation
------------

[](#installation)

```
$ composer global require free-donut/hexlet
```

Launch and examples
-------------------

[](#launch-and-examples)

### Even

[](#even)

```
$ brain-even
```

[![asciicast](https://camo.githubusercontent.com/f7514e8ce699de659f9aa605149d05931ea0c38e705d85e5ad0340931b7a7ddc/68747470733a2f2f61736369696e656d612e6f72672f612f704b46675a3138576a53753445706656786d595738666a59662e737667)](https://asciinema.org/a/pKFgZ18WjSu4EpfVxmYW8fjYf)

### Calc

[](#calc)

```
$ brain-calc
```

[![asciicast](https://camo.githubusercontent.com/08398b25bd7a20cc98ab9cb2017d03ba082c92912099cc7c8d6101a9409976f8/68747470733a2f2f61736369696e656d612e6f72672f612f56456430516d69504570446f4858493379413556784575366b2e737667)](https://asciinema.org/a/VEd0QmiPEpDoHXI3yA5VxEu6k)

### GSD

[](#gsd)

```
$ brain-gcd
```

[![asciicast](https://camo.githubusercontent.com/5458403fc4efbd3af987731aab58f80de68f05f2986af1b455d1c621b8862319/68747470733a2f2f61736369696e656d612e6f72672f612f6d53774637344c7036354a305458587a796f307765463778762e737667)](https://asciinema.org/a/mSwF74Lp65J0TXXzyo0weF7xv)

### Progression

[](#progression)

```
$ brain-progression
```

[![asciicast](https://camo.githubusercontent.com/973cca92ab468f24ed0cdc1707191040ebfbe08b6485a1da01da7cb06592219a/68747470733a2f2f61736369696e656d612e6f72672f612f67664632467a744230447534646d475479534b4537727a63582e737667)](https://asciinema.org/a/gfF2FztB0Du4dmGTySKE7rzcX)

### Prime

[](#prime)

```
$ brain-prime
```

[![asciicast](https://camo.githubusercontent.com/d95cf357d522d7501a32d121b8b6e0b7f312370340decfe392991f29597a7bb4/68747470733a2f2f61736369696e656d612e6f72672f612f63365973487a6e5747504d7a704b4d33516133734e6d5978632e737667)](https://asciinema.org/a/c6YsHznWGPMzpKM3Qa3sNmYxc)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

20

Last Release

2539d ago

Major Versions

v0.4.2 → v1.0.02019-04-28

v1.3.0 → v2.0.02019-05-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/328963b0e2a8e1c1beb015926d665acfc6749655ed4ff1639f6b38a91bcd9e83?d=identicon)[free-donut](/maintainers/free-donut)

---

Top Contributors

[![free-donut](https://avatars.githubusercontent.com/u/45130739?v=4)](https://github.com/free-donut "free-donut (6 commits)")

---

Tags

cligames

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/free-donut-hexlet/health.svg)

```
[![Health](https://phpackages.com/badges/free-donut-hexlet/health.svg)](https://phpackages.com/packages/free-donut-hexlet)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/packages/wp-cli-wp-cli)

PHPackages © 2026

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