PHP Class Gush\Util\StringUtil

Some methods in this class are borrowed from the Doctrine project.
Mostra file Open project: gushphp/gush Class Usage Examples

Public Methods

Method Description
camelize ( string $word ) : string Camelizes a word.
concatWords ( string $word ) : string Concatenates the words to an uppercased wording.
splitLines ( string $input ) : array

Method Details

camelize() public static method

This uses the classify() method and turns the first character to lowercase.
public static camelize ( string $word ) : string
$word string The word to camelize.
return string The camelized word.

concatWords() public static method

Converts 'git flow', 'git-flow' and 'git_flow' to 'GitFlow'.
public static concatWords ( string $word ) : string
$word string The word to transform.
return string The transformed word.

splitLines() public static method

public static splitLines ( string $input ) : array
$input string
return array