public static function camelCaseToDash($string) { return strtolower(preg_replace('/(?<=[a-z])([A-Z])/', '-$1', $string)); }