Qrcode

Create qrcode

Arguments

$value
QR code value

Example

$qrUrl = $this->get('qrcode','http://www.ekansio.fi')->getUrl();

More examples

Get url to image:

$qrUrl = $this->get('qrcode','http://www.ekansio.fi')->getUrl();

Get HTML IMG tag to image:

$qrHtmlImage = $this->get('qrcode','http://www.ekansio.fi')->getImage();

Send Image to browser:

$this->get('qrcode','http://www.ekansio.fi')->outputFile();

Save image to file:

$this->get('qrcode','http://www.ekansio.fi')->saveToFile($filename);

Get path to image in server:

$File = $this->get('qrcode','http://www.ekansio.fi')->getFile();

Full method list

Set parameters

Method return Description
setCode($string) this QR code value.
setWidth($int) this Set width.
setHeight($int) this Set height.

Get barcode

Method return Description
getUrl() string Get url to image.
getImage() string Get HTML IMG tag to image.
getFile() string Get path to file.
outputFile() - Send file to browser.
saveToFile($filename) bool Save image to file by given filename. Return TRUE on success.