Get a single parameter from the auth code request parameters.

@param $key
@param null $default

@return mixed
320480
public function getAuthCodeRequestParam($key, $default = null)
    {
        if (array_key_exists($key, $this->authCodeRequestParams)) {
            return $this->authCodeRequestParams[$key];
        }

        return $default;
    }
378534
public static function get($key=null,$default=null){
    return $key ? (filter_input(INPUT_GET,$key) ?: (is_callable($default)?call_user_func($default):$default)) : $_GET;
  }
1286686
public function get($key, $default = null)
    {
        $this->checkLoaded();

        return Arr::get($this->data, $key, $default);
    }
217843
public function query(string $key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->getQueryParams();
        }
        return $this->getQueryParams()[$key] ?? $default;
    }
211327
public function getParam(string $key, $default = null)
    {
        if (isset($this->post[$key])) {
            return $this->post[$key];
        }
        if (isset($this->get[$key])) {
            return $this->get[$key];
        }
        return $default;
    }
435072
public function getBodyParam($key, $default = null)
    {
        $params = $this->getBodyParams();
        if (array_key_exists($key, $params)) {
            return $params[$key];
        }
        return $default;
    }
51242
public function getParameter(string $key, bool $compulsory, $default = null)
    {
        if (isset($this->urlParameters[$key])) {
            $value = $this->urlParameters[$key];
        } else {
            $postVals = $this->request->getParsedBody();
            $value = null;
            if (isset($postVals[$key])) {
                $value = $postVals[$key];
            } else {
                $getVals = $this->request->getQueryParams();
                if (isset($getVals[$key])) {
                    $value = $getVals[$key];
                } else {
                    $uploadedFiles = $this->request->getUploadedFiles();
                    if (isset($uploadedFiles[$key])) {
                        $value = $uploadedFiles[$key];
                    }
                }
            }
        }
        if ($value !== null) {
            return $value;
        } elseif (!$compulsory) {
            return $default;
        } else {
            throw SplashMissingParameterException::create($key);
        }
    }
906317
public static function param($key, $default = null)
    {
        if (!$key || !\is_string($key)) {
            return false;
        }

        $ret = $_POST[$key] ?? $_GET[$key] ?? $default;

        if (\is_string($ret)) {
            return stripslashes(urldecode(preg_replace('/((\%5C0+)|(\%00+))/i', '', urlencode($ret))));
        }

        return $ret;
    }
1302872
public function getBodyParam(string $key, $default = null) 
  {
    if (is_array($this->parsedBody) || $this->parsedBody instanceof \ArrayAccess) {
      return $this->parsedBody[$key] ?? $default;
    }

    return $default;
  }
44955
public function input($key = null, $default = null)
    {
        return $this->getParameter($key, $this->getPayloadData($key, $default));
    }
288444
public function param($key = NULL, $default = NULL)
    {
        if ( !$key ) {
            return $this->attributes->all();
        }

        $path = '';
        $key  = explode('.', $key);
        foreach ($key as $item) {
            if ( !$path ) {
                $path .= $item;
                continue;
            }
            $path .= '[' . $item . ']';
        }

        return $this->attributes->get($path, $default, TRUE);
    }
175186
public function getParameter($key, $default = null, $domain = null)
    {
        if ($domain) {
            return isset($this->config[$domain][$key])  ? $this->config[$domain][$key] : $default;
        }

        return isset($this->config[$key])  ? $this->config[$key] : $default;
    }
658272
public function get(string $key, $default = null)
    {
        return ($value = $this->offsetGet($key)) === null ? $default : $value;
    }
516138
public function getQueryParameter($key, $defaultValue = null)
    {
        if (array_key_exists($key, $this->getParameters)) {
            return $this->getParameters[$key];
        }

        return $defaultValue;
    }
1250709
public function getOne($key, $default = null)
    {
        $ret = $default;
        $all = $this->get($key);
        if (count($all) > 0) {
            $ret = array_shift($all);
        }

        return $ret;
    }
633122
public function getServerParam(string $key, $default = null)
    {
        $key = \strtoupper($key);

        return $this->serverParams[$key] ?? $default;
    }
217150
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }