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

※ This site is using the CakePHP 1.2.6.

The result of running Inflector

Inflector::pluralize rooms
Inflector::singularize room
Inflector::camelize Room
Inflector::underscore room
Inflector::humanize Room
Inflector::tableize rooms
Inflector::classify Room
Inflector::variable room
Inflector::slug room

CakePHP Conventions

model
Model Name Room UpperCamelCase,single
Inflector::singularize(Inflector::classify($word));
Model's FileName room.php underscored,lower,single
Inflector::singularize(Inflector::slug(strtolower($word))).'.php';
Table Name rooms underscored,lower,plural
Inflector::pluralize(Inflector::slug(strtolower($word)));
controller
Controller Name Rooms UpperCamelCase,plural
Inflector::pluralize(Inflector::classify($word));
Controller's ClassName RoomsController UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller';
Controller's FileName rooms_controller.php underscored,lower,plural,with '_controller'
Inflector::pluralize(Inflector::slug(strtolower($word))).'_controller.php';
for uses Room Model Name
Inflector::singularize(Inflector::classify($word));
view
View Folder rooms underscored,lower,plural
Inflector::pluralize(Inflector::slug(strtolower($word)));
View's FileName room.php underscored,lower,single
Inflector::singularize(Inflector::slug(strtolower($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