$singulars
$singulars : array
List of singular nouns as rule => replacement.
camelize(string $word, boolean $firstUpper = true) : string
By default, camelize() converts strings to UpperCamelCase. If the second argument is set to false then camelize() produces lowerCamelCase. camelize() will also convert '/' to '\' which is useful for converting paths to namespaces.
string | $word | Lower case and underscored word. |
boolean | $firstUpper | First letter in uppercase? |
classify(string $table) : string
Create a class name from a plural table name like Rails does for table names to models. Note that this returns a string and not a Class.
To convert to an actual class follow classify() with constantize().
string | $table | Table name. |