QRCode PHP Class Overview

The Kendo UI QRCode for PHP is a server-side wrapper for the Kendo UI QRCode widget.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI QRCode for PHP.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for PHP—include the autoloader, JavaScript, and CSS files.

Step 2 Add a QRCode.

    $qrcode = new \Kendo\Dataviz\UI\QRCode('qrcode');

Step 3 Choose the appropriate error correction level and encoding.

    $qrcode = new \Kendo\Dataviz\UI\QRCode('qrcode');

Step 4 Output the QRCode by echoing the result of the render method.

    echo $qrcode->render();


Client-Side Instances

You are able to reference an existing QRCode instance via the jQuery.data(). Once a reference is established, use the QRCode API to control its behavior.

    //Put this after your Kendo QRCode for PHP render() call
    $(function() {
        // Notice that the Name() of the qrcode is used to get its client-side instance
        var qrcode = $("#qrcode").data("kendoQRCode");

See Also

In this article