PHPackages                             specialsnipe/code - 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. specialsnipe/code

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

specialsnipe/code
=================

hexlet php-package

01PHP

Since Jul 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/specialsnipe/php-project-lvl1)[ Packagist](https://packagist.org/packages/specialsnipe/code)[ RSS](/packages/specialsnipe-code/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Math Games
=================

[](#simple-math-games)

Description:

### Hexlet tests and linter status:

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

[![Actions Status](https://github.com/specialsnipe/php-project-lvl1/workflows/hexlet-check/badge.svg)](https://github.com/specialsnipe/php-project-lvl1/actions)[![](https://camo.githubusercontent.com/bf72f7ac882b5e3d90868daf83d862de6c6758cd94d39820dc9968957468c6e8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63353165336562386563373362363436653539352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/specialsnipe/php-project-lvl1/maintainability)

How To Install
--------------

[](#how-to-install)

`composer global require specialsnipe/code:main-dev@dev`

How To Run A Game
-----------------

[](#how-to-run-a-game)

run `brain-game` and then type game name

Games List With Description
---------------------------

[](#games-list-with-description)

1. *calc*
    Find the result of the expression.
2. *even*
    Answer "yes" if given number is even, otherwise answer "no".
3. *gcd*
    Find the greatest common divisor of given numbers.
4. *prime*
    Answer "yes" if given number is prime, otherwise answer "no".
5. *progression*
    Find number that is missing in the progression.

brain-even game:
[![asciicast](https://camo.githubusercontent.com/109ba29f7089a4edf30bf9950a540cb41f6d0cc93e9a7ad0a880fade009f5592/68747470733a2f2f61736369696e656d612e6f72672f612f325472467369665039627a4b3870316d6778463037327079312e737667)](https://asciinema.org/a/2TrFsifP9bzK8p1mgxF072py1)
brain-calc game:
[![asciicast](https://camo.githubusercontent.com/c68366338845c621217de0f8706dd7577d3582f4b271e55962632ad7f8ecb6f0/68747470733a2f2f61736369696e656d612e6f72672f612f315873686c6d4d575a7538654654314a7070695a304b7778662e737667)](https://asciinema.org/a/1XshlmMWZu8eFT1JppiZ0Kwxf)
brain-gcd game:
[![asciicast](https://camo.githubusercontent.com/d2a5e12e8ec6d603f5c47820388fa32b404ce8fdc3514ac0a35470a49436c973/68747470733a2f2f61736369696e656d612e6f72672f612f65636b496f535171595674774d775751646c71646e4a456e6e2e737667)](https://asciinema.org/a/eckIoSQqYVtwMwWQdlqdnJEnn)
brain-progression game:
[![asciicast](https://camo.githubusercontent.com/db3d3602eff1aa2bf4099333f559604a229d8592f82d5d5eb0405345d2eeffc5/68747470733a2f2f61736369696e656d612e6f72672f612f68465859514b7a6a5a6d68475346366b566637497933674c332e737667)](https://asciinema.org/a/hFXYQKzjZmhGSF6kVf7Iy3gL3)
brain-prime game: [![asciicast](https://camo.githubusercontent.com/f82cf7fb613aa4bd65e5f43009112d6c1bdf15c1171052f0a77127be5d09fa65/68747470733a2f2f61736369696e656d612e6f72672f612f316f4a5a6e7261384f54466a6970757a3953357431447548712e737667)](https://asciinema.org/a/1oJZnra8OTFjipuz9S5t1DuHq)

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

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/38b76263ae6cb3191f125da3fbc3c06c5f07c8bd5f8979b229c51246a0416aa5?d=identicon)[specialsnipe](/maintainers/specialsnipe)

---

Top Contributors

[![specialsnipe](https://avatars.githubusercontent.com/u/101312014?v=4)](https://github.com/specialsnipe "specialsnipe (52 commits)")

### Embed Badge

![Health badge](/badges/specialsnipe-code/health.svg)

```
[![Health](https://phpackages.com/badges/specialsnipe-code/health.svg)](https://phpackages.com/packages/specialsnipe-code)
```

###  Alternatives

[diarmuidie/niceid

PHP library to generate short, non-sequential, URL-friendly hashes of incremental IDs. Similar to YouTube (https://www.youtube.com/watch?v=dQw4w9WgXcQ) and Bitly (http://bit.ly/1D0CAzd) URLs.

1557.9k](/packages/diarmuidie-niceid)

PHPackages © 2026

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