Image_Barcode2
[ class tree: Image_Barcode2 ] [ index: Image_Barcode2 ] [ all elements ]

File: Code128.php

Source Location: /Image_Barcode2-0.2.3/Image/Barcode2/Driver/Code128.php

Page Details:

Image_Barcode2_Driver_Code128 class

Renders Code128 barcodes Code128 is a high density encoding for alphanumeric strings. This module prints the Code128B representation of the most common ASCII characters (32 to 134).

These are the components of a Code128 Bar code:

  • 10 Unit Quiet Zone
  • 6 Unit Start Character
  • (n * 6) Unit Message
  • 6 Unit "Check Digit" Character
  • 7 Unit Stop Character
  • 10 Unit Quiet Zone
I originally wrote this algorithm in Visual Basic 6 for a Rapid Software Development class, where we printed Code128 B bar codes to read using Cue Cat bar code readers. I rewrote the algorithm using PHP for inclusion in the PEAR Image_Barcode2 project.

The Code128B bar codes produced by the algorithm have been validated using my trusty Cue-Cat bar code reader.

PHP versions 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once('Image/Barcode2/Driver.php') [line 44]
require_once('Image/Barcode2/Common.php') [line 45]
require_once('Image/Barcode2/Exception.php') [line 46]

Documentation generated on Mon, 11 Mar 2019 15:53:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.