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

[Advice needed] which version and constraints to use? #1157

Closed
the-hotmann opened this issue Jan 21, 2020 · 2 comments
Closed

[Advice needed] which version and constraints to use? #1157

the-hotmann opened this issue Jan 21, 2020 · 2 comments

Comments

@the-hotmann
Copy link

We actually use mPDF in our project and I would ask nicely if there is a preferred notation that should be used in the composer.json file?

Before we used "mpdf/mpdf": "dev-master", but apparently PHP 7.4 compatibility was not given there are. This is somehow using the latest mPDF v7? Or am I wrong?
After switching to "mpdf/mpdf": "^8.0.4", version 8.0.4 got used and since it supports PHP 7.4 our application now runs with PHP 7.4 perfectly fine.

First I want to thank you guys for this awesome free and open source PHP library!!

My question is:
Should I use:

  1. "mpdf/mpdf": "^8.0.4", (which stands for ">=8.0.4 <9.0.0") = 8.0.4 (atm)
    or better
  2. "mpdf/mpdf": "~8.0.4", (which stands for ">=8.0.4 <8.1.0") = 8.0.4 (atm)

as both would ATM result in the same version. But which one would be more save for the future?
Does this PHP library follow the composer version and constraints rules?
I ask this as I'm a bit uncertain about if some versions above >8.1 may bring breaking changes and are not marked as such, so it would on long term be better to use the second one.

But would definitely listen to what the creators/maintainers recommend.

Best regards,
Martin

@finwe
Copy link
Member

finwe commented Jan 21, 2020

Please note that the Issue tracker serves mainly as a place to report bugs and request new features as noted in Contributing guidelines. Please do not abuse it as a general questions or troubleshooting location.

Use the the mpdf tag at Stack Overflow.

@finwe finwe closed this as completed Jan 21, 2020
@finwe
Copy link
Member

finwe commented Jan 21, 2020

We try to keep semver for mPDF, ^8.0.4 should be safe, breaking changes wait for 9.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants