Package Home

Zend Framework 2 Documentation (Manual)

PHK Home

File: /modules/zend.barcode.objects.details.html

Size:30771
Storage flags:no_autoload,compress/gzip (16%)

Description of shipped barcodes — Zend Framework 2 2.4.2 documentation

Description of shipped barcodes

You will find below detailed information about all barcode types shipped by default with Zend Framework.

Zend\Barcode\Object\Error

../_images/zend.barcode.objects.details.error.png

This barcode is a special case. It is internally used to automatically render an exception caught by the Zend\Barcode component.

Zend\Barcode\Object\Code128

../_images/zend.barcode.objects.details.code128.png
  • Name: Code 128
  • Allowed characters: the complete ASCII-character set
  • Checksum: optional (modulo 103)
  • Length: variable

There are no particular options for this barcode.

Zend\Barcode\Object\Codabar

../_images/zend.barcode.objects.details.codabar.png
  • Name: Codabar (or Code 2 of 7)
  • Allowed characters:‘0123456789-$:/.+’ with ‘ABCD’ as start and stop characters
  • Checksum: none
  • Length: variable

There are no particular options for this barcode.

Zend\Barcode\Object\Code25

../_images/zend.barcode.objects.details.code25.png
  • Name: Code 25 (or Code 2 of 5 or Code 25 Industrial)
  • Allowed characters:‘0123456789’
  • Checksum: optional (modulo 10)
  • Length: variable

There are no particular options for this barcode.

Zend\Barcode\Object\Code25interleaved

../_images/zend.barcode.objects.details.int25.png

This barcode extends Zend\Barcode\Object\Code25 (Code 2 of 5), and has the same particulars and options, and adds the following:

  • Name: Code 2 of 5 Interleaved
  • Allowed characters:‘0123456789’
  • Checksum: optional (modulo 10)
  • Length: variable (always even number of characters)

Available options include:

Zend\Barcode\Object\Code25interleaved Options
Option Data Type Default Value Description
withBearerBars Boolean FALSE Draw a thick bar at the top and the bottom of the barcode.

Note

If the number of characters is not even, Zend\Barcode\Object\Code25interleaved will automatically prepend the missing zero to the barcode text.

Zend\Barcode\Object\Ean2

../_images/zend.barcode.objects.details.ean2.png

This barcode extends Zend\Barcode\Object\Ean5 (EAN 5), and has the same particulars and options, and adds the following:

  • Name: EAN-2
  • Allowed characters:‘0123456789’
  • Checksum: only use internally but not displayed
  • Length: 2 characters

There are no particular options for this barcode.

Note

If the number of characters is lower than 2, Zend\Barcode\Object\Ean2 will automatically prepend the missing zero to the barcode text.

Zend\Barcode\Object\Ean5

../_images/zend.barcode.objects.details.ean5.png

This barcode extends Zend\Barcode\Object\Ean13 (EAN 13), and has the same particulars and options, and adds the following:

  • Name: EAN-5
  • Allowed characters:‘0123456789’
  • Checksum: only use internally but not displayed
  • Length: 5 characters

There are no particular options for this barcode.

Note

If the number of characters is lower than 5, Zend\Barcode\Object\Ean5 will automatically prepend the missing zero to the barcode text.

Zend\Barcode\Object\Ean8

../_images/zend.barcode.objects.details.ean8.png

This barcode extends Zend\Barcode\Object\Ean13 (EAN 13), and has the same particulars and options, and adds the following:

  • Name: EAN-8
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 8 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 8, Zend\Barcode\Object\Ean8 will automatically prepend the missing zero to the barcode text.

Zend\Barcode\Object\Ean13

../_images/zend.barcode.objects.details.ean13.png
  • Name: EAN-13
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 13 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 13, Zend\Barcode\Object\Ean13 will automatically prepend the missing zero to the barcode text.

The option withQuietZones has no effect with this barcode.

Zend\Barcode\Object\Code39

../_images/zend.barcode.introduction.example-1.png
  • Name: Code 39
  • Allowed characters:‘0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%’
  • Checksum: optional (modulo 43)
  • Length: variable

Note

Zend\Barcode\Object\Code39 will automatically add the start and stop characters (‘*’) for you.

There are no particular options for this barcode.

Zend\Barcode\Object\Identcode

../_images/zend.barcode.objects.details.identcode.png

This barcode extends Zend\Barcode\Object\Code25interleaved (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few particulars of its own.

  • Name: Identcode (Deutsche Post Identcode)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10 different from Code25)
  • Length: 12 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 12, Zend\Barcode\Object\Identcode will automatically prepend missing zeros to the barcode text.

Zend\Barcode\Object\Itf14

../_images/zend.barcode.objects.details.itf14.png

This barcode extends Zend\Barcode\Object\Code25interleaved (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few particulars of its own.

  • Name: ITF-14
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 14 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 14, Zend\Barcode\Object\Itf14 will automatically prepend missing zeros to the barcode text.

Zend\Barcode\Object\Leitcode

../_images/zend.barcode.objects.details.leitcode.png

This barcode extends Zend\Barcode\Object\Identcode (Deutsche Post Identcode), and inherits some of its capabilities; it also has a few particulars of its own.

  • Name: Leitcode (Deutsche Post Leitcode)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10 different from Code25)
  • Length: 14 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 14, Zend\Barcode\Object\Leitcode will automatically prepend missing zeros to the barcode text.

Zend\Barcode\Object\Planet

../_images/zend.barcode.objects.details.planet.png
  • Name: Planet (PostaL Alpha Numeric Encoding Technique)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 12 or 14 characters (including checksum)

There are no particular options for this barcode.

Zend\Barcode\Object\Postnet

../_images/zend.barcode.objects.details.postnet.png
  • Name: Postnet (POSTal Numeric Encoding Technique)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 6, 7, 10 or 12 characters (including checksum)

There are no particular options for this barcode.

Zend\Barcode\Object\Royalmail

../_images/zend.barcode.objects.details.royalmail.png
  • Name: Royal Mail or RM4SCC (Royal Mail 4-State Customer Code)
  • Allowed characters:‘0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ’
  • Checksum: mandatory
  • Length: variable

There are no particular options for this barcode.

Zend\Barcode\Object\Upca

../_images/zend.barcode.objects.details.upca.png

This barcode extends Zend\Barcode\Object\Ean13 (EAN-13), and inherits some of its capabilities; it also has a few particulars of its own.

  • Name: UPC-A (Universal Product Code)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 12 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 12, Zend\Barcode\Object\Upca will automatically prepend missing zeros to the barcode text.

The option withQuietZones has no effect with this barcode.

Zend\Barcode\Object\Upce

../_images/zend.barcode.objects.details.upce.png

This barcode extends Zend\Barcode\Object\Upca (UPC-A), and inherits some of its capabilities; it also has a few particulars of its own. The first character of the text to encode is the system (0 or 1).

  • Name: UPC-E (Universal Product Code)
  • Allowed characters:‘0123456789’
  • Checksum: mandatory (modulo 10)
  • Length: 8 characters (including checksum)

There are no particular options for this barcode.

Note

If the number of characters is lower than 8, Zend\Barcode\Object\Upce will automatically prepend missing zeros to the barcode text.

Note

If the first character of the text to encode is not 0 or 1, Zend\Barcode\Object\Upce will automatically replace it by 0.

The option withQuietZones has no effect with this barcode.

Edit this document

Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.

  1. Login with your GitHub account.
  2. Go to Description of shipped barcodes on GitHub.
  3. Edit file contents using GitHub's text editor in your web browser
  4. Fill in the Commit message text box at the end of the page telling why you did the changes. Press Propose file change button next to it when done.
  5. On Send a pull request page you don't need to fill in text anymore. Just press Send pull request button.
  6. Your changes are now queued for review under project's Pull requests tab on GitHub.

For more information about the PHK package format: http://phk.tekwire.net