PHP Classes

Barcode: Generate barcode graphs using different standards

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (24)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 9,873 All time: 143 This week: 90Up
Version License PHP version Categories
barcode 1.0.1Freeware4Graphics
Description 

Author

This class can generate barcode graphics supporting different bar formatting standards.

It supports the standards EAN-13, EAN-8, UPC-A, UPC-E, ISBN, 2 of 5 interleaved, postnet, codabar, code128, code39 and code93.

The barcode graphics can be generated as images in the PNG, GIF or JPEG formats. The generated images can be served as the current script output or stored in a file.

Picture of Harish Chauhan
Name: Harish Chauhan is available for providing paid consulting. Contact Harish Chauhan .
Classes: 28 packages by
Country: India India
Age: ???
All time rank: 32 in India India
Week rank: 22 Down3 in India India Down
Innovation award
Innovation award
Nominee: 1x

Recommendations

easy barcode generator source code
i need source code for barcode generator in php

What is the best PHP barcode generator class?
barcode generator that can make multiple upc barcode

What is the best PHP barcode class?
barcode 128

barcode generator through form inputs using php
I need code which takes inputs from form and generate barcode

Example

<?php
   
require("barcode.inc.php");

   
$encode=$_REQUEST['encode'];
   
$bar= new BARCODE();
   
    if(
$bar==false)
        die(
$bar->error());
   
// OR $bar= new BARCODE("I2O5");

   
$barnumber=$_REQUEST['bdata'];
   
//$barnumber="200780";
    //$barnumber="801221905";
    //$barnumber="A40146B";
    //$barnumber="Code 128";
    //$barnumber="TEST8052";
    //$barnumber="TEST93";
   
   
$bar->setSymblogy($encode);
   
$bar->setHeight($_REQUEST['height']);
   
//$bar->setFont("arial");
   
$bar->setScale($_REQUEST['scale']);
   
$bar->setHexColor($_REQUEST['color'],$_REQUEST['bgcolor']);

   
/*$bar->setSymblogy("UPC-E");
    $bar->setHeight(50);
    $bar->setFont("arial");
    $bar->setScale(2);
    $bar->setHexColor("#000000","#FFFFFF");*/

    //OR
    //$bar->setColor(255,255,255) RGB Color
    //$bar->setBGColor(0,0,0) RGB Color

     
   
$return = $bar->genBarCode($barnumber,$_REQUEST['type'],$_REQUEST['file']);
    if(
$return==false)
       
$bar->error(true);
   
?>


Screenshots  
  • barcode.jpg
  Files folder image Files  
File Role Description
Plain text file barcode.inc.php Class Main Class
Plain text file barcode.php Example example file
Plain text file index.php Aux. Test File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:9,873
This week:0
All time:143
This week:90Up
User Ratings User Comments (10)
 All time
Utility:88%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:84%StarStarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:991