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 blocks
Inflector::singularize block
Inflector::camelize Block
Inflector::underscore block
Inflector::humanize Block
Inflector::tableize blocks
Inflector::classify Block
Inflector::variable block
Inflector::slug block

CakePHP Conventions

model
Model Name Block UpperCamelCase,single
Inflector::singularize(Inflector::classify($word));
Model's FileName Block.php UpperCamelCase,single
Inflector::singularize(Inflector::classify($word)).'.php';
Table Name blocks underscored,lower,plural
Inflector::tableize($word);
controller
Controller Name Blocks UpperCamelCase,plural
Inflector::pluralize(Inflector::classify($word));
Controller's ClassName BlocksController UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller';
Controller's FileName BlocksController.php UpperCamelCase,plural,with 'Controller'
Inflector::pluralize(Inflector::classify($word)).'Controller.php';
for uses Block Model Name
Inflector::singularize(Inflector::classify($word));
view
View Folder Blocks Controller Name
Inflector::pluralize(Inflector::classify($word));
View's FileName block.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