PHPackages                             mikemike/spinner - 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. mikemike/spinner

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

mikemike/spinner
================

A Laravel package to spin content.

114266PHP

Since Jul 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mikemike/spinner)[ Packagist](https://packagist.org/packages/mikemike/spinner)[ RSS](/packages/mikemike-spinner/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Spinning Package
========================

[](#laravel-spinning-package)

Introduction
------------

[](#introduction)

Spin articles and text using this package.

What is spinning?
-----------------

[](#what-is-spinning)

Spinning allows an author to write an article or text but provide different variations of words or sentences. This class then plucks a sentence out at random. The idea being that lots of versions of the same article/text will be generated.

The text format is sometimes referred to as 'spyntax' or 'spintax'

Example text
------------

[](#example-text)

`{Hello|Hi|Hey} my name is {Frank|Bob|John}`

may produce: `Hi my name is Frank``Hey my name is Frank``Hello my name is Bob``Hi my name is John``Hey my name is Bob`etc...

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

[](#installation)

Add `"mikemike/spinner": "dev-master"` to your `composer.json`.

Run `composer update`

Add `Mikemike\Spinner\SpinnerServiceProvider::class,` to the `providers` array in your `config/app.php`.

Add `'Spinner' => Mikemike\Spinner\SpinnerFacade::class,` to the `aliases` array in your `config/app.php`.

How to use
----------

[](#how-to-use)

Add the class at the top of your class:

```
use Spinner;

```

And then call it anywhere in your code:

```
$spinner = new Spinner();

$string = '{Hey|Howdy|Hi there|Hi} {there|mate|bud|buddy}, {{how are|how\'re} {you|ya}|how you doin\'|how {you|ya} {feeling|hanging}|you doing {OK|alright}}?';

echo $spinner::process($string);

```

Notes
-----

[](#notes)

Nested spins are supported, as illustrated in the above example.

Sponsors
--------

[](#sponsors)

This package is sponsored by [Accreditly](https://accreditly.io), who offer a number of web development certifications, including:

- [PHP Certification](https://accreditly.io/certifications/php-fundamentals)
- [JavaScript Certification](https://accreditly.io/certifications/javascript-fundamentals)
- [Database Fundamentals Certification](https://accreditly.io/certifications/database-fundamentals)
- [WordPress Certification](https://accreditly.io/certifications/wordpress-development)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity22

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/734a9385ea0f1660e53954d483539b1680f8afebe743948580ce1d37b33f7ee5?d=identicon)[mikemike](/maintainers/mikemike)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mikemike-spinner/health.svg)

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

###  Alternatives

[voku/phonetic-algorithms

Phonetic-Algorithms for fuzzy searching | PHP

1738.4k1](/packages/voku-phonetic-algorithms)[oriondevelops/filament-greeter

A Filament plugin to greet your users.

1214.3k1](/packages/oriondevelops-filament-greeter)

PHPackages © 2026

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