Types of Barcode

Supporting multiple barcode types like TYPE_CODE_39, TYPE_CODE_128, TYPE_EAN_13, TYPE_UPC_E, etc
Check detailed list in Barcode package's README.md

Type Code 128

\koolreport\barcode\BarCode::create(array(
    "format" => "jpg",
    "value"=>"081231723897",
    "type"=>"TYPE_CODE_128"
));

HTML:

SVG:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
081231723897
081231723897
081231723897

JPG:

PNG:

081231723897
081231723897

Type Code 39

\koolreport\barcode\BarCode::create(array(
    "format" => "jpg",
    "value"=>"081231723897",
    "type"=>"TYPE_CODE_39"
));

HTML:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
081231723897

SVG:

*081231723897*
081231723897

JPG:

081231723897

PNG:

081231723897

This example show other available barcode types that you may use:

TYPE_CODE_39 | TYPE_CODE_39_CHECKSUM | TYPE_CODE_39_CHECKSUM | TYPE_CODE_39E | TYPE_CODE_39E_CHECKSUM

TYPE_CODE_93

TYPE_STANDARD_2_5 | TYPE_STANDARD_2_5_CHECKSUM | TYPE_INTERLEAVED_2_5 | TYPE_INTERLEAVED_2_5_CHECKSUM

TYPE_CODE_128 | TYPE_CODE_128_A | TYPE_CODE_128_B | TYPE_CODE_128_C

TYPE_EAN_2 | TYPE_EAN_5 | TYPE_EAN_8 | TYPE_EAN_13 |

TYPE_UPC_A | TYPE_UPC_E

TYPE_MSI | TYPE_MSI_CHECKSUM

TYPE_POSTNET | TYPE_PLANET | TYPE_RMS4CC | TYPE_KIX | TYPE_IMB | TYPE_CODABAR | TYPE_CODE_11 | TYPE_PHARMA_CODE | TYPE_PHARMA_CODE_TWO_TRACKS

<?php
require_once "MyReport.php";

$report = new MyReport;
$report->run()->render();
<?php
//Step 1: Load KoolReport
require_once "../../../../koolreport/autoload.php";

//Step 2: Creating Report class
class MyReport extends \koolreport\KoolReport
{

}
<?php
    use koolreport\barcode\BarCode;
?>
<div class="report-content">
    <div class="text-center">
        <h1>Types of Barcode</h1>
        <p class="lead">
            Supporting multiple barcode types like TYPE_CODE_39, TYPE_CODE_128,
            TYPE_EAN_13, TYPE_UPC_E, etc<br>
            Check detailed list in Barcode package's README.md
        </p>
    </div>

    <h3>Type Code 128</h3>
    <div style="margin-top:20px;">

<pre style="font-weight:bold"><code>\koolreport\barcode\BarCode::create(array(
    "format" => "jpg",
    "value"=>"081231723897",
    "type"=>"TYPE_CODE_128"
));</code></pre>    
    <i class="fa fa-arrow-down" style="font-size:24px;"></i>    
    <div class='row'>
        <h4 class="col-md-6">HTML:</h4>
        <h4 class="col-md-6">SVG:</h4>
    </div>
    <div class='row'>
        <div class="col-md-6">
            <?php 
                BarCode::create(array(
                    "format" => "html",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_128"
                ));
            ?>
            <div>081231723897</div>
        </div>
        <div class="col-md-6">
            <?php 
                BarCode::create(array(
                    "format" => "svg",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_128"
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>
    <div class='row'>
        <h4 class="col-md-6">JPG:</h4>
        <h4 class="col-md-6">PNG:</h4>
    </div>
    <div class='row'>
        <div class="col-md-6">
            <?php 
                BarCode::create(array(
                    "format" => "jpg",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_128"
                ));
            ?>
            <div>081231723897</div>
        </div>
        <div class="col-md-6">
            <?php 
                BarCode::create(array(
                    "format" => "png",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_128"
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>

    <div style="margin-top:20px;">
    <div style="margin-top:20px;">
    <h3>Type Code 39</h3>
    <div style="margin-top:20px;">

<pre style="font-weight:bold"><code>\koolreport\barcode\BarCode::create(array(
    "format" => "jpg",
    "value"=>"081231723897",
    "type"=>"TYPE_CODE_39"
));</code></pre>    
    <i class="fa fa-arrow-down" style="font-size:24px;"></i> 
    <div class="row">
        <h4 class="col-md-6">HTML:</h4>
    </div>
    <div class='row'>
        <div class="col-md-12">
            <?php 
                BarCode::create(array(
                    "format" => "html",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_39",
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>
    <div class="row">
        <h4 class="col-md-6">SVG:</h4>
    </div>
    <div class='row'>
        <div class="col-md-12">
            <?php 
                BarCode::create(array(
                    "format" => "svg",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_39",
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>
    <div class="row">
        <h4 class="col-md-6">JPG:</h4>
    </div>
    <div class='row'>
        <div class="col-md-12">
            <?php 
                BarCode::create(array(
                    "format" => "jpg",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_39",
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>
    <div class="row">
        <h4 class="col-md-6">PNG:</h4>
    </div>
    <div class='row'>
        <div class="col-md-12">
            <?php 
                BarCode::create(array(
                    "format" => "png",
                    "value"=>"081231723897",
                    "type"=>"TYPE_CODE_39",
                ));
            ?>
            <div>081231723897</div>
        </div>
    </div>

</div>

What People Are Saying

"KoolReport helps me very much in creating data report for my corporate! Keep up your good work!"
-- Alain Melsens

"The first use of your product. I was impressed by its easiness and powerfulness. This product is a great and amazing."
-- Dr. Lew Choy Onn

"Fantastic framework for reporting!"
-- Greg Schneider

Download KoolReport