src/Util.php
public static function snakeToCamelCase($input)
    {
        if (!is_string($input)) {
            return null;
        }

        $output = preg_replace_callback('/(^|_)+(.)/', function ($match) {
            return strtoupper($match[2]);
        }, $input);

        return lcfirst($output);
    }
public static function snakeToCamelCase($input)
    {
        if (!is_string($input)) {
            return null;
        }

        $output = preg_replace_callback('/(^|_)+(.)/', function ($match) {
            return strtoupper($match[2]);
        }, $input);

        return lcfirst($output);
    }
public static function snakeToCamelCase ( $ input ) { if ( ! is_string ( $ input ) ) { return null ; } $ output = preg_replace_callback ( '/(^|_)+(.)/' , function ( $ match ) { return strtoupper ( $ match [ 2 ] ) ; } , $ input ) ; return lcfirst ( $ output ) ; }
Convert a string from snake_case to camelCase.

If the input is not a string, null is returned.

@param string $input Input snake_case string
@return null|string Output camelCase string
Convert a string from snake_case to camelCase .