Simple wrapper class for PHP string functions
The minimum requirement is PHP 5.4.
Using the helper function str()
str('FooBar')->charAt(0)->length();
or creating a new instance manually
$string = new \String\Stringy('FooBarQux'); // 1
$string->slice(3, 3)->equals('Bar'); // true