Skip to content

tayron/php-string-object

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String-Object

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

About

String object manipulation in PHP

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 100.0%