This site is built library CakePHP "Inflector" test site.
※ This site is using the CakePHP 2.7.5.
Enter the text you want to convert, "Send" button please.
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'; |