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
MIT