Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump picqer/php-barcode-generator from 2.4.2 to 3.2.0 #2152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 25, 2024

Bumps picqer/php-barcode-generator from 2.4.2 to 3.2.0.

Release notes

Sourced from picqer/php-barcode-generator's releases.

v3.2.0

What's Changed

Breaking changes

  • All Renderers (introduced in v3) now wants the $width instead of a $widthFactor to 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: picqer/php-barcode-generator@v3.1.0...v3.2.0

v3.1.0

What's Changed

Full Changelog: picqer/php-barcode-generator@v3.0.0...v3.1.0

v3.0.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 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.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [picqer/php-barcode-generator](https://github.com/picqer/php-barcode-generator) from 2.4.2 to 3.2.0.
- [Release notes](https://github.com/picqer/php-barcode-generator/releases)
- [Commits](picqer/php-barcode-generator@v2.4.2...v3.2.0)

---
updated-dependencies:
- dependency-name: picqer/php-barcode-generator
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Nov 25, 2024
Copy link

what-the-diff bot commented Nov 25, 2024

PR Summary

  • Enhanced Barcode Generation Capabilities
    The barcode generation library used in the application, picqer/php-barcode-generator, has been updated. Moving from version 2.1 to 3.2 includes enhancements and potential bug fixes, improving the reliability and functionality of any features relying on barcode generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants