PHPackages                             mchljams/spun - 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. mchljams/spun

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

mchljams/spun
=============

PHP Library to process strings containing spintax syntax.

0.0.6(8y ago)8525MITPHPPHP &gt;=5.3.0

Since Feb 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mchljams/spun)[ Packagist](https://packagist.org/packages/mchljams/spun)[ Docs](https://github.com/mchljams/spun/)[ RSS](/packages/mchljams-spun/feed)WikiDiscussions develop Synced 4w ago

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

Spun
====

[](#spun)

PHP string/text spinning library using spintax.

How To Use
----------

[](#how-to-use)

```
$spun = new Spun;

$spun->str = "This is a string that {includes|contains|holds} choices you can spin.";

$new_string = $spun->spin();
```

**One Possible Result**

```
This is a string that holds choices you can spin.

```

Proposed Features
-----------------

[](#proposed-features)

1. Nesting
2. Configurable Syntax (Use delimiters other than curly braces)

Unit Tests
----------

[](#unit-tests)

**Run Unit Tests**

Change directory to the root of this package and run:

```
./vendor/bin/phpunit

```

**Run Unit Tests With HTML Coverage Report**

```
./vendor/bin/phpunit --coverage-html coverage

```

Code Linting
------------

[](#code-linting)

**Using PHP\_CodeSniffer**

Developed using the PSR-2 Standard

```
./vendor/bin/phpcs --standard=PSR2 ./src

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

Recently: every ~56 days

Total

6

Last Release

3197d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10671926?v=4)[Mike Pisula](/maintainers/mchljams)[@mchljams](https://github.com/mchljams)

---

Top Contributors

[![mchljams](https://avatars.githubusercontent.com/u/10671926?v=4)](https://github.com/mchljams "mchljams (2 commits)")

---

Tags

spinnerspintaxspintax

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mchljams-spun/health.svg)

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

###  Alternatives

[endclothing/prometheus_client_php

Prometheus instrumentation library for PHP applications.

1511.9M10](/packages/endclothing-prometheus-client-php)[tuupola/base58

Base58 encoder and decoder for arbitrary data

56672.8k25](/packages/tuupola-base58)[bjoernffm/spintax

Spintax {parsing|processing} library.

1439.7k](/packages/bjoernffm-spintax)[chilldev/spintax

Spintax {parsing|processing} library.

162.4k](/packages/chilldev-spintax)

PHPackages © 2026

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