stringy / stringy
String class
dev-master
2017-01-16 18:03 UTC
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4.8
- symfony/yaml: ~2.1
This package is not auto-updated.
Last update: 2025-06-21 21:50:00 UTC
README
Simple wrapper class for PHP string functions
Requirements
The minimum requirement is PHP 5.4.
Usage
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