gaming-engine/string-tools

String Helper libraries

1.0.1 2021-10-07 21:20 UTC

This package is auto-updated.

Last update: 2024-11-08 04:00:47 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

A quick and easy helper for handling templated strings in PHP.

Installation

You can install the package via composer:

composer require gaming-engine/string-tools

Usage

$text = \GamingEngine\StringTools\StringHelper::template(
    'text-{variable}-{values}',
    [
        'variable' => 'hi',
        'values' => 'bye',
    ]
);

// Yields - text-hi-bye

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email awjudd@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.