Class to convert string variable to variable with attributes.
Two examples:
$convert = new \Treto\ConvertStrings();
$string = "My name is __userName__ and I have __userYear__ yr. Text created in [class] class.";
$string2 = $convert -> interpolate($string, ['userName' => 'Tomirad', 'userYear' => 33], '____');
echo $convert -> interpolate($string2, ['class' => 'ConvertStrings']);
#
# Result:
# My name is Tomirad and I have 33 yr. Text created in ConvertStrings class.
#
TODO:
- Prepare class under Composer