src/Manipulator.php
public function camelToSnake() : Manipulator
    {
        $modifiedString = '';

        foreach (str_split($this->string, 1) as $character) {
            $modifiedString .= ctype_upper($character) ? '_' . $character : $character;
        }

        return new static(mb_strtolower($modifiedString));
    }
public function camelToSnake() : Manipulator
    {
        $modifiedString = '';

        foreach (str_split($this->string, 1) as $character) {
            $modifiedString .= ctype_upper($character) ? '_' . $character : $character;
        }

        return new static(mb_strtolower($modifiedString));
    }
public function camelToSnake ( ) : Manipulator { $ modifiedString = '' ; foreach ( str_split ( $ this -> string , 1 ) as $ character ) { $ modifiedString .= ctype_upper ( $ character ) ? '_' . $ character : $ character ; } return new static ( mb_strtolower ( $ modifiedString ) ) ; }
Convert a camel-case string to snake-case.

@return object|Manipulator
Convert a camel - case string to snake - case .