jopacicdev/spintax

There is no license information available for the latest version (v0.1) of this package.

Simple way to process spintax strings

v0.1 2014-04-06 12:07 UTC

This package is auto-updated.

Last update: 2024-05-05 02:26:57 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/