NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #621 most downloaded on Packagist
An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.
Latest stable
v3.3.0
Last release 3 months ago
22 Aug 2026
Release timing varies
gaps range from 2 weeks to 13 months
Nearly every release is documented
notes for 27 of 28 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
28 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
New version of UPC-E barcodes by @casperbakker in https://github.com/picqer/php-barcode-generator/pull/225
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.2.4...v3.3.0
Fix avoid imagedestroy on PHP 8+ by @Pixelao in https://github.com/picqer/php-barcode-generator/pull/224
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.2.3...v3.2.4
Your coding agent can read these notes before it upgrades. Set up the MCP server →
set JPG default to white background as per docs by @twinklebob in https://github.com/picqer/php-barcode-generator/pull/220
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.2.2...v3.2.3
Fix TypeCode128 AB sequence detection by @vitkutny in https://github.com/picqer/php-barcode-generator/pull/219
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.2.1...v3.2.2
Add .gitattributes by @popov-do in https://github.com/picqer/php-barcode-generator/pull/208
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.2.0...v3.2.1
Add a RendererInterface by @casperbakker in https://github.com/picqer/php-barcode-generator/pull/206
$width instead of a $widthFactor to make the renderers consistent[255, 0, 0] for red)I forgot to add these changes to v3, so now added in this 3.2.0 release while not many people are using v3.
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.1.0...v3.2.0
Add support for background colors by @casperbakker in https://github.com/picqer/php-barcode-generator/pull/205
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v3.0.0...v3.1.0
A new version of this library that gives a better way to add new types and new options to the renderers. Instead of rendering the barcode inside the r
A new version of this library that gives a better way to add new types and new options to the renderers. Instead of rendering the barcode inside the renderers, I have split the code in 2 pieces: the barcode translators (calculating the bars and spaces) and the renderers that can turn it into an image.
The renderers are now more flexibel in the options it can have. We can now add margin for example, or generate a text below the barcode.
// Make Barcode object of Code128 encoding.
$barcode = (new Picqer\Barcode\Types\TypeCode128())->getBarcode('081231723897');
// Output the barcode as HTML in the browser with a HTML Renderer
echo (new Picqer\Barcode\Renderers\HtmlRenderer())->render($barcode);
Options can be given as separate calls to the renderer, like this:
echo (new Picqer\Barcode\Renderers\HtmlRenderer())->setForegroundColor('#eee')->render($barcode);
That keeps simple usages as clean as possible, while also making room for new options.
The old 'generators' will work the same and are helpers to get the new types and renderers. So it is save to use this new version with your old usage of this library.
Fix incorrect nullable return type by @bjdelange in https://github.com/picqer/php-barcode-generator/pull/199
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.4.0...v2.4.2
Add Telepen/Telepen Numeric by @illuminatusds in https://github.com/picqer/php-barcode-generator/pull/188
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.3.3...v2.4.0
Fix phpdoc type case for usage with vimeo/psalm by @mbaschnitzi in https://github.com/picqer/php-barcode-generator/pull/187
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.3.2...v2.3.3
Update PHP doc types by @trandbert37 in https://github.com/picqer/php-barcode-generator/pull/176
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.3.1...v2.3.2
ITF-14 improvements by @casperbakker in https://github.com/picqer/php-barcode-generator/pull/186
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.3.0...v2.3.1
Add ITF-14 barcode type by @igor-tv in https://github.com/picqer/php-barcode-generator/pull/137
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.2.4...v2.3.0
Fixing barcode type "Standard 2 of 5" by @Bernhard-Krop in https://github.com/picqer/php-barcode-generator/pull/161
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.2.3...v2.2.4
Solution for Issue: Error with Code 11 using check digit K by @Bernhard-Krop in https://github.com/picqer/php-barcode-generator/pull/158
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.2.2...v2.2.3
Fix encoding of char 11 in Code39e by @casperbakker in https://github.com/picqer/php-barcode-generator/pull/153
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.2.1...v2.2.2
fix deprecated: strtoupper(): Passing null to parameter (#144) by @turbopixel in https://github.com/picqer/php-barcode-generator/pull/146
Full Changelog: https://github.com/picqer/php-barcode-generator/compare/v2.2.0...v2.2.1
Added new Dynamic HTML generator for vector based HTML output, thanks to @Xi0s #126
Fixed imagick results is different from GD result #103
Removed special chars from filenames we use for test validation #94
Finally got around to refactoring the original structure from the original tcpdf library.
Big new version 🎉
Finally got around to refactoring the original structure from the original tcpdf library.
Added support for PHP 7.4, thanks to @pilif
Added support for PHP 7.4, thanks to @pilif
Raising exceptions if we cannot generate JPG or PNG because of missing libraries. Thanks @OskarStark
Raising exceptions if we cannot generate JPG or PNG because of missing libraries. Thanks @OskarStark
Bugfixes for wrong constant values.
Bugfixes for wrong constant values.
SVG: Add viewBox attribute to allow svg scaling #68 by @cuchac
This release adds exceptions to this package. Now it is easier to detect if the generated barcode is correct or not.
This release adds exceptions to this package. Now it is easier to detect if the generated barcode is correct or not.
Nothing published for this version
One column per quarter.