for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace nstdio\svg\util;
/**
* Class Inflector
*
* @package nstdio\svg\util
* @author Edgar Asatryan <[email protected]>
*/
class Inflector
{
* Converts camelCase word to camel-case.
* @param $string string Input string.
* @return string The converted string.
public static function camel2dash($string)
return strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $string));
}