picqer/php-barcode-generator
An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.
v3.3.0
30M downloads/mo
#632 most downloaded on Packagist
picqer/php-barcode-generator
What this package is like to depend on
Last release today
22 Aug 2026
Release timing varies
gaps range from 2 weeks to 13 months
Some releases are documented
notes for 10 of 28 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
28 releases · first in 2015
2 releases in the last 12 months
see the full history below
Release timeline
28 releases · Aug 2015 to Aug 2026Releases
latest 28-
v3.3.022 Aug 2026Release notes
Open source →What's Changed
- New version of UPC-E barcodes by @casperbakker in #225
- Added php 8.5 checks
- Raised phpstan to level 9
- Fixed a Telepen bug
- mbstring extension is not needed
Full Changelog: v3.2.4...v3.3.0
-
v3.2.408 Jan 2026 -
v3.2.329 Jul 2025Release notes
Open source →What's Changed
- set JPG default to white background as per docs by @twinklebob in #220
New Contributors
- @twinklebob made their first contribution in #220
Full Changelog: v3.2.2...v3.2.3
-
v3.2.203 Jun 2025 -
v3.2.114 Apr 2025 -
v3.2.001 Oct 2024Release notes
Open source →What's Changed
- Add a RendererInterface by @casperbakker in #206
Breaking changes
- All Renderers (introduced in v3) now wants the
$widthinstead of a$widthFactorto make the renderers consistent - Colors are always set with an array of RGB colors (for example
[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: v3.1.0...v3.2.0
-
v3.1.021 Sep 2024Release notes
Open source →What's Changed
- Add support for background colors by @casperbakker in #205
Full Changelog: v3.0.0...v3.1.0
-
v3.0.021 Sep 2024Release notes
Open source →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.
Backwards compatible
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.
-
v2.4.218 Sep 2024Release notes
Open source →What's Changed
- Fix incorrect nullable return type by @bjdelange in #199
- ITF14 checksum fix by @vitkutny in #203
New Contributors
- @bjdelange made their first contribution in #199
- @vitkutny made their first contribution in #203
Full Changelog: v2.4.0...v2.4.2
-
v2.4.016 Sep 2023Release notes
Open source →What's Changed
- Add Telepen/Telepen Numeric by @illuminatusds in #188
- Add static analysis with phpstan by @casperbakker in #189
New Contributors
- @illuminatusds made their first contribution in #188
Full Changelog: v2.3.3...v2.4.0
-
v2.3.314 Aug 2023Nothing published for this version
-
v2.3.225 Jul 2023Nothing published for this version
-
v2.3.124 Jul 2023Nothing published for this version
-
v2.3.024 Jul 2023Nothing published for this version
-
v2.2.401 Jul 2022Nothing published for this version
-
v2.2.314 Jun 2022Nothing published for this version
-
v2.2.206 May 2022Nothing published for this version
-
v2.2.107 Feb 2022Nothing published for this version
-
v2.2.027 Mar 2021Nothing published for this version
-
v2.1.024 Dec 2020Nothing published for this version
-
v2.0.128 Jan 2020Nothing published for this version
-
v2.0.011 Jan 2020Nothing published for this version
-
v0.4.031 Dec 2019Nothing published for this version
-
v0.2.228 Sep 2017Nothing published for this version
-
v0.2.117 Oct 2016Nothing published for this version
-
v0.312 Jan 2019Nothing published for this version
-
v0.214 May 2016Nothing published for this version
-
v0.113 Aug 2015Nothing published for this version