tommus / stringo
An object oriented solution to strings in php.
0.3.2
2019-02-01 12:50 UTC
Requires
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-05-29 04:15:31 UTC
README
An object oriented solution to strings in php.
Usage
// The from method creates a string from a string literal or variable. $string = Stringo::from('hello there'); // Methods that take no arguments can be used statically: $string = Stringo::fromCapitalize('hello'); // Hello $string = Stringo::fromSplit('hi there friend'); // ['hi', 'there', 'friend']
Full API reference coming soon but for now check out the Stringo class and StringTest for usage examples.
Testing
composer test