$totp->uri()
Returns a otpauth:// URI for use in a setup QR code or link
$totp->uri(string $issuer, string $label): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $issuerrequired | string |
no default value | Name of the site the code is valid for |
| $labelrequired | string |
no default value | Account name the code is valid for |
Return type
string
This method modifies the existing $totp object it is applied to and returns it again.