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 wp-jsons
Inflector::singularize wp-json
Inflector::camelize Wp-json
Inflector::underscore wp-json
Inflector::humanize Wp-json
Inflector::tableize wp-jsons
Inflector::classify Wp-json
Inflector::variable wp-json
Inflector::slug wp_json

CakePHP Conventions

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