- Full name:
\RobThree\Auth\Providers\Qr\QRServerProvider
- Parent class:
\RobThree\Auth\Providers\Qr\BaseHTTPQRCodeProvider
public string $errorcorrectionlevel
public int $margin
public int $qzone
public string $bgcolor
public string $color
public string $format
public __construct(bool $verifyssl = false, string $errorcorrectionlevel = 'L', int $margin = 4, int $qzone = 1, string $bgcolor = 'ffffff', string $color = '000000', string $format = 'png'): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$verifyssl |
bool | |
$errorcorrectionlevel |
string | |
$margin |
int | |
$qzone |
int | |
$bgcolor |
string | |
$color |
string | |
$format |
string |
{@inheritdoc}
public getMimeType(): mixed
{@inheritdoc}
public getQRCodeImage(mixed $qrtext, mixed $size): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$qrtext |
mixed | |
$size |
mixed |
private decodeColor(string $value): string
Parameters:
Parameter | Type | Description |
---|---|---|
$value |
string |
public getUrl(string $qrtext, int|string $size): string
Parameters:
Parameter | Type | Description |
---|---|---|
$qrtext |
string | the value to encode in the QR code |
$size |
int|string | the desired size of the QR code |
Return Value:
file contents of the QR code
protected getContent(string $url): string|bool
Parameters:
Parameter | Type | Description |
---|---|---|
$url |
string |