Doctrine\Common\Util\Inflector

Doctrine inflector has static methods for inflecting text

The methods in these classes are from several different sources collected
across several different php projects and several different authors. The
original author names and emails are not known

Synopsis

class Inflector {
}

Methods

public

  • camelize() — Camelize a word. This uses the classify() method and turns the first character to lowercase
  • classify() — Convert a word in to the format for a Doctrine class name. Converts 'table_name' to 'TableName'
  • tableize() — Convert word in to the format for a Doctrine table name. Converts 'ModelName' to 'model_name'