An example qrcode

The Barcodes module provides a Field Formatter for various field types, a Block plugin, and a Twig Filter to display various field types as rendered Barcodes. Supports using tokens for barcode values.

Drush Commands are also provided to manually work with Barcodes from the command line.

To find out more about these features and how to use this module, please read the Barcodes module documentation.

Available barcode types

  • CODE 128
  • CODE 128 A
  • CODE 128 B
  • CODE 128 C
  • CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
  • CODE 39 + CHECKSUM
  • CODE 39 EXTENDED
  • CODE 39 EXTENDED + CHECKSUM
  • CODE 93 - USS-93
  • CODABAR
  • CODE 11
  • EAN 13
  • EAN 2-Digits UPC-Based Extension
  • EAN 5-Digits UPC-Based Extension
  • EAN 8
  • Interleaved 2 of 5
  • Interleaved 2 of 5 + CHECKSUM
  • IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200
  • IMB - Intelligent Mail Barcode pre-processed
  • KIX (Klant index - Customer index)
  • 1D RAW MODE (comma-separated rows of 01 strings)
  • MSI (Variation of Plessey code)
  • MSI + CHECKSUM (modulo 11)
  • PHARMACODE
  • PHARMACODE TWO-TRACKS
  • PLANET
  • POSTNET
  • RMS4CC (Royal Mail 4-state Customer Bar Code)
  • Standard 2 of 5
  • Standard 2 of 5 + CHECKSUM
  • UPC-A
  • UPC-E
  • AZTEC Code (ISO/IEC 24778:2008)
  • DATAMATRIX (ISO/IEC 16022)
  • PDF417 (ISO/IEC 15438:2006)
  • QR-CODE (ISO/IEC 23941)
  • 2D RAW MODE (comma-separated rows of 01 strings)

Configuration

  • Add a field of one of the types of email, integer, link, string, telephone, text, text_long or text_with_summary, bigint, uuid
  • Choose Barcode as formatter
  • Adjust the settings like type, color and dimensions to your liking
  • Add a barcode block to your page and provide the value in the settings

Optional dependencies

  • Composer manager (Drupal 7.x)
    You may use composer manager module to manage external dependencies.
  • Token
    You may use Token module, if you need token replacement functionality in your barcode data.

Dependencies

The Barcodes module integrates the tecnickcom/tc-lib-barcode PHP barcode library into Drupal. More information about this library may be found on that project page on GitHub.

  • No further system dependencies, just PHP and Drupal
  • No external service dependencies
  • No special font dependencies

Similar projects

Unlike Barcodes, which supports 37 different barcode formats including QR code, the other modules in Drupal just support the QR code format and nothing else.

Other unsupported or obsolete projects

🇺🇦

#StandWithUkraine
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

Logo icon by Solar Icons in CC Attribution License via SVG Repo

Supporting organizations: 
Drupal 8/9 Development and Maintenance

Project information

Releases