Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

App Directory >> CakePHP Inflector by Eric DavidEric David

Download this App

package
inflector
version
1.0.0
license
MIT (X11)

CakePHP Inflector

This is the Cake inflector class updated to PHP5 syntax for Vork

Typical usage:

$inflector 
get::component('inflector');

echo 
$inflector->pluralize('person');
//prints: people

echo $inflector->singularize('people');
//prints: person

echo $inflector->camelize('cakephp_inflector_class');
//prints: cakephpInflectorClass

echo $inflector->underscore('cakephpInflectorClass');
//prints: cakephp_inflector_class


App Files