This site is built library CakePHP "Inflector" test site.

※ This site is using the CakePHP 2.7.5.

The result of running Inflector

Inflector::pluralize Surveys
Inflector::singularize Survey
Inflector::camelize Survey
Inflector::underscore survey
Inflector::humanize Survey
Inflector::tableize surveys
Inflector::classify Survey
Inflector::variable survey
Inflector::slug Survey

CakePHP Conventions

model
Model Name Survey UpperCamelCase,single
Inflector::singularize(Inflector::classify($word));
Model's FileName Survey.php UpperCamelCase,single
Inflector::singularize(Inflector::classify($word)).'.php';
Table Name surveys underscored,lower,plural
Inflector::tableize($word);
controller
Controller Name Surveys UpperCamelCase,plural
Inflector::pluralize(Inflector::classify($word));
Controller's ClassName SurveysController UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller';
Controller's FileName SurveysController.php UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller.php';
for uses Survey Model Name
Inflector::singularize(Inflector::classify($word));
view
View Folder Surveys Controller Name
Inflector::pluralize(Inflector::classify($word));
View's FileName survey.php Action Name
Inflector::underscore($word).'.php';

"Inflector" is?

The Inflector class takes a string and can manipulate it to handle word variations such as pluralizations or camelizing and is normally accessed statically. Example: Inflector::pluralize('example'); returns "examples". (From the official site

References

Similar sites can