Skip to content

Latest commit

 

History

History
278 lines (100 loc) · 2.28 KB

QRServerProvider.md

File metadata and controls

278 lines (100 loc) · 2.28 KB

QRServerProvider

Properties

errorcorrectionlevel

public string $errorcorrectionlevel

margin

public int $margin

qzone

public int $qzone

bgcolor

public string $bgcolor

color

public string $color

format

public string $format

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:

Parameter Type Description
$verifyssl bool
$errorcorrectionlevel string
$margin int
$qzone int
$bgcolor string
$color string
$format string

getMimeType

{@inheritdoc}

public getMimeType(): mixed

getQRCodeImage

{@inheritdoc}

public getQRCodeImage(mixed $qrtext, mixed $size): mixed

Parameters:

Parameter Type Description
$qrtext mixed
$size mixed

decodeColor

private decodeColor(string $value): string

Parameters:

Parameter Type Description
$value string

getUrl

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


Inherited methods

getContent

protected getContent(string $url): string|bool

Parameters:

Parameter Type Description
$url string