A quick and easy helper for handling templated strings in PHP.
You can install the package via composer:
composer require gaming-engine/string-tools
$text = \GamingEngine\StringTools\StringHelper::template(
'text-{variable}-{values}',
[
'variable' => 'hi',
'values' => 'bye',
]
);
// Yields - text-hi-bye
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.