OTPHP\OTP::generateURI PHP Method

generateURI() protected method

protected generateURI ( string $type, array $options ) : string
$type string
$options array
return string
    protected function generateURI($type, array $options)
    {
        $options = array_merge($options, $this->getParameters());
        $this->filterOptions($options);
        $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options));
        return sprintf('otpauth://%s/%s?%s', $type, rawurlencode((null !== $this->getIssuer() ? $this->getIssuer() . ':' : '') . $this->getLabel()), $params);
    }