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
- Author: Konsta Vesterinen <kvesteri@cc.hut.fi>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class Inflector
{
- // methods
- public static string tableize()
- public static string classify()
- public static string camelize()
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'