Edit this page

Barcode PHP Class Overview

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

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI Barcode 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 Barcode with the default type (Code39).

$barcode = new \Kendo\Dataviz\UI\Barcode('barcode');

Step 3 Change the symbology to match your scenario.

$barcode = new \Kendo\Dataviz\UI\Barcode('barcode');

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

echo $barcode->render();


Existing Instances

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

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

See Also

Other articles on Telerik UI for PHP and on the Barcode:

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article