PHPackages                             air-petr/php-turnstile - 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. air-petr/php-turnstile

ActiveLibrary

air-petr/php-turnstile
======================

Funny PHP implementation of a Monostate pattern

v1.0.2(4y ago)012MITPHP

Since Dec 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Air-Petr/php-turnstile)[ Packagist](https://packagist.org/packages/air-petr/php-turnstile)[ RSS](/packages/air-petr-php-turnstile/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

PHP Turnstile
=============

[](#php-turnstile)

Funny PHP implementation of a Monostate pattern. An adopted example from Robert Martin's "Agile Software Development, Principles, Patterns, and Practices" book.

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

[](#installation)

```
composer require air-petr/php-turnstile
```

Demo
----

[](#demo)

You can play with code in `demo` folder. Here's how you can run interactive game:

```
php demo/example.php
```

Testing
-------

[](#testing)

There are some unit tests in `test` folder. Run tests by:

```
composer test
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

3

Last Release

1548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc29160cfd4432204e4df0fbab4bfcc6e7b1ba471255e64146b93a604c7c8e72?d=identicon)[air-petr](/maintainers/air-petr)

---

Top Contributors

[![Air-Petr](https://avatars.githubusercontent.com/u/15061863?v=4)](https://github.com/Air-Petr "Air-Petr (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/air-petr-php-turnstile/health.svg)

```
[![Health](https://phpackages.com/badges/air-petr-php-turnstile/health.svg)](https://phpackages.com/packages/air-petr-php-turnstile)
```

PHPackages © 2026

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