code: public static function createFromString(string $uri): \One\Uri
      {
          $data = parse_url($uri);
          $scheme = self::validateString((string) self::checkData($data, 'scheme', ''));
          $user = self::validateString((string) self::checkData($data, 'user', ''));
          $pass = self::validateString((string) self::checkData($data, 'pass', ''));
          $host = self::validateString((string) self::checkData($data, 'host', ''));
          $port = self::checkData($data, 'port', null);
          $path = self::validateString((string) self::checkData($data, 'path', ''));
          $query = self::validateString((string) self::checkData($data, 'query', ''));
          $fragment = self::validateString((string) self::checkData($data, 'fragment', ''));
          return self::createUri($scheme, $host, $port, $user, $pass, $path, $query, $fragment);
      }
docs: function for Create Uri From Server