core/Utils.php
public static function toCamel($name)
    {
        $name = preg_replace('@[_-]+@', '_', $name);
        $name = preg_replace_callback('@_[a-z]@', function ($m) {
            return substr(strtoupper($m[0]), 1);
        }, $name);
        $name = ucfirst($name);
        return $name;
    }
public static function toCamel($name)
    {
        $name = preg_replace('@[_-]+@', '_', $name);
        $name = preg_replace_callback('@_[a-z]@', function ($m) {
            return substr(strtoupper($m[0]), 1);
        }, $name);
        $name = ucfirst($name);
        return $name;
    }
下划线转驼峰
@param $name
@return null|string|string[]