Skip to content

Instantly share code, notes, and snippets.

View PhiSYS's full-sized avatar

David Strencsev PhiSYS

  • Cartagena, Spain
View GitHub Profile
@PhiSYS
PhiSYS / spintax.php
Last active April 27, 2020 07:01 — forked from irazasyed/spintax.php
PHP: Text Spinner Class - Nested spinning supported.
<?php
/**
* Spintax - A helper class to process Spintax strings.
* @name Spintax
* @author Jason Davis - https://www.codedevelopr.com/
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/
* Modified by Mark Larsen:
* Added ability so that a fixed output can be returned.
* Modified by David Strencsev:
* Refactor and regular expression lazy optimization.