Version 3.0.0

October 20, 2026

Changed

  • Craft CMS 5 compatibility (requires Craft 5 and PHP 8.2). Allows picqer/php-barcode-generator 3.x.
  • The field’s settings are validated: the type must be one of the supported types, the width ratio and height whole numbers of at least 1, and the colour a six-digit hex value.

Fixed

  • The Barcode field now uses its own Type, Width Ratio, Height and Color settings. Previously every field rendered an EAN-13 barcode at the defaults, whatever it was set to.
  • The field’s colour is saved with its #, so it reaches the barcode as a valid colour.
  • The field no longer errors when Craft normalizes its value without an element.
  • A template error, an empty number, or a number the barcode type cannot encode now gives the field no value (and is logged) instead of an error page.
  • generate() with a format other than png returns SVG instead of nothing.

Version 2.0.1

July 20, 2022

Changed

  • Updated icon

Version 2.0.0

June 2, 2022

Added

  • Added Craft 4 support

Version 1.0.4

June 10, 2022

Changed

  • Change of ownership

Version 1.0.3

June 25, 2020

Added

  • added EANUPC type doesn't force a 0 prefix on numbers

Version 1.0.2

May 27, 2020

Changed

  • Updated composer dependencies

Version 0.0.1

February 4, 2019

Added

  • Initial release