ikwattro / string-object
String manipulation with objects
Installs: 551
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/ikwattro/string-object
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2025-09-28 01:59:59 UTC
README
PHP String manipulation with objects.
Get it :
composer require ikwattro/string-object
Example :
$code = StringObject::newInstance("Toys - Bicycles and Bikes - 12398") ->split("-") ->last() ->trim();` # 12398
$formatted = StringObject::newInstance("Christmas is on 25/12") ->toLower() ->replace("/","-"); # christmas is on 25-12
Licence
MIT