jopacicdev / spintax
Simple way to process spintax strings
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jopacicdev/spintax
Requires
- php: >=5.3.0
- illuminate/support: 4.1.*
This package is auto-updated.
Last update: 2025-10-05 05:21:53 UTC
README
Installation
To include this package in your project, require it in your composer.json
file using
"jopacicdev/spintax": "dev-master"
Afterwards, include service provider and alias in app/config/app.php
:
'Jopacicdev\Spintax\SpintaxServiceProvider',
and
'Spintax' => 'Jopacicdev\Spintax\Facades\Spintax',
and you're all set!
Usage
Pass your spintax string as a parameter of process
method:
Spintax::process('{Hi|Hello|Howdy|Hola|Hey} there {Mr|Mrs|Miss} {Smith|Jones}!');
Credits
Original PHP class by Jason Davis - https://www.codedevelopr.com/