Inflector
class Inflector (View source)
Inflector utilities for the Kickstarter. This is a basic conversion from PHP class and field names to a human readable form.
Methods
string
pluralize(string $word)
No description
string
humanizeCamelCase(string $camelCased, bool $lowercase = false)
Convert a model class name like "BlogAuthor" or a field name like "blogAuthor" to a humanized version like "Blog author" for better readability.
string
spacify(string $camelCased, string $glue = ' ')
Splits a string at lowercase/uppcase transitions and insert the glue character in between.
Details
string
pluralize(string $word)
No description
string
humanizeCamelCase(string $camelCased, bool $lowercase = false)
Convert a model class name like "BlogAuthor" or a field name like "blogAuthor" to a humanized version like "Blog author" for better readability.
protected string
spacify(string $camelCased, string $glue = ' ')
Splits a string at lowercase/uppcase transitions and insert the glue character in between.