Download the PHP package leobenoist/string-helper without Composer
On this page you can find all versions of the php package leobenoist/string-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package string-helper
StringHelper
Usage:
StringHelper::toUpperCamelCase($string)
Result: CamelCase
StringHelper::toLowerCamelCase($string)
Result: camelCase
StringHelper::toSnakeCase($string)
Result: snake_case
StringHelper::toLowerCase($string)
Result: lower case
StringHelper::toHumanCase($string)
Result: Human case
StringHelper::endWith(string $haystack, string $needle)
Result: true
StringHelper::startsWith(string $haystack, string $needle)
Result: true
StringHelper::extractPrefix(string $haystack, string $separator = '-')
Result: pre
StringHelper::extractSuffix(string $haystack, string $separator = '-')
Result: fix
StringHelper::removePrefix(string $haystack, string $separator = '-')
Result: fix
StringHelper::removeSuffix(string $haystack, string $separator = '-')
Result: pre
StringHelper::stringContains(string $haystack, string $needle)
Result: true
Run tests
./vendor/phpunit/phpunit/phpunit
All versions of string-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package leobenoist/string-helper contains the following files
Loading the files please wait ....