src/Service.php
public static function parse(string $word): array
    {
        $word = ltrim(rtrim(trim($word), '}'), '{');

        /* Having Default Value */
        if ($separatorPosition = strpos($word, '=')) {
            $key = substr($word, 0, $separatorPosition);
            $defaultValue = substr($word, $separatorPosition + 1);
            return [$key, $defaultValue];
        }

        return [$word, null];
    }
public static function parse(string $word): array
    {
        $word = ltrim(rtrim(trim($word), '}'), '{');

        /* Having Default Value */
        if ($separatorPosition = strpos($word, '=')) {
            $key = substr($word, 0, $separatorPosition);
            $defaultValue = substr($word, $separatorPosition + 1);
            return [$key, $defaultValue];
        }

        return [$word, null];
    }
Parse an argument or option to its key and value

@param string $word
@return array