QRServerProvider
extends BaseHTTPQRCodeProvider
in package
Table of Contents
- $bgcolor : string
- $color : string
- $errorcorrectionlevel : string
- $format : string
- $margin : int
- $qzone : int
- $verifyssl : bool
- __construct() : mixed
- getMimeType() : mixed
- {@inheritdoc}
- getQRCodeImage() : mixed
- {@inheritdoc}
- getUrl() : string
- getContent() : string|bool
- decodeColor() : string
Properties
$bgcolor
public
string
$bgcolor
$color
public
string
$color
$errorcorrectionlevel
public
string
$errorcorrectionlevel
$format
public
string
$format
$margin
public
int
$margin
$qzone
public
int
$qzone
$verifyssl
protected
bool
$verifyssl
Methods
__construct()
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
- $verifyssl : bool = false
- $errorcorrectionlevel : string = 'L'
- $margin : int = 4
- $qzone : int = 1
- $bgcolor : string = 'ffffff'
- $color : string = '000000'
- $format : string = 'png'
Return values
mixed —getMimeType()
{@inheritdoc}
public
getMimeType() : mixed
Return values
mixed —getQRCodeImage()
{@inheritdoc}
public
getQRCodeImage(mixed $qrtext, mixed $size) : mixed
Parameters
- $qrtext : mixed
- $size : mixed
Return values
mixed —getUrl()
public
getUrl(string $qrtext, int|string $size) : string
Parameters
- $qrtext : string
-
the value to encode in the QR code
- $size : int|string
-
the desired size of the QR code
Return values
string —file contents of the QR code
getContent()
protected
getContent(string $url) : string|bool
Parameters
- $url : string
Return values
string|bool —decodeColor()
private
decodeColor(string $value) : string
Parameters
- $value : string