A subset of the rails inflector class written in PHP.