skgroup/php-std-dynamic-string

PHP Template based random string generator

dev-master 2015-06-23 09:17 UTC

This package is auto-updated.

Last update: 2024-11-29 04:30:32 UTC


README

Installation

Install via composer:

$ composer require skgroup/php-std-dynamic-string

How to use

$dynamicString = new \sKGroup\Std\String\DynamicString('{Hi|Hello},{My {friend|name} is a {Bob|Mark|Jon}}!');
echo $dynamicString->generate(); // e.g. - Hello, My name is a Jon!
echo $dynamicString->generate(); // e.g. - Hello, My friend is a Mark!
echo $dynamicString->generate(); // e.g. - Hi, My name is a Bob!