Метод |
Описание |
|
addWord ( string $singular, string $plural ) : void |
Add a word to the cache, useful to make exceptions or to add words in other languages. |
|
camelize ( string $word ) : string |
Returns given word as CamelCased. |
|
deleteCache ( ) |
|
|
explode ( string $word ) : array |
Convert any "CamelCased" word into an array of strings |
|
getPart ( string $string, integer $index, string $default = null ) : string |
Gets a part of a CamelCased word by index. |
|
humanize ( string $word ) : string |
Returns a human-readable string from $word. |
|
implode ( array $words ) : string |
Convert an array of strings into a "CamelCased" word. |
|
isPlural ( string $string ) : boolean |
Check to see if an Enlish word is plural. |
|
isSingular ( string $string ) : boolean |
Check to see if an English word is singular |
|
pluralize ( string $word ) : string |
Singular English word to plural. |
|
singularize ( string $word ) : string |
Plural English word to singular. |
|
underscore ( string $word ) : string |
Converts a word "into_it_s_underscored_version" |
|
variablize ( string $string ) : string |
Returns camelBacked version of a string. Same as camelize but first char is lowercased. |
|