atgp / factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files
MIT License
87 stars 22 forks source link

Conflict due to dependency on old package #21

Closed wq9578 closed 10 months ago

wq9578 commented 1 year ago

When installing with composer, there is a conflict since an obviously very old version of smalot/pdfparser (main version 0) is required. A neuer version should be included to allow for projects which also require a newer smalot/pdfparser version (currently main version 2).

➜  composer require atgp/factur-x
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update atgp/factur-x
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - atgp/factur-x[dev-develop, v1.0.0, ..., v1.0.1] require smalot/pdfparser ^0.13.2 -> found smalot/pdfparser[v0.13.2, v0.13.3] but it conflicts with your root composer.json require (^2.2).
    - atgp/factur-x[dev-master, v1.0.2, ..., v1.0.3] require smalot/pdfparser ^0.19.0 -> found smalot/pdfparser[v0.19.0] but it conflicts with your root composer.json require (^2.2).
    - Root composer.json requires atgp/factur-x * -> satisfiable by atgp/factur-x[dev-master, dev-develop, v1.0.0, v1.0.1, v1.0.2, v1.0.3, 9999999-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require atgp/factur-x:*" to figure out if any version is installable, or "composer require atgp/factur-x:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
lucas-gp commented 1 year ago

Hello, As I said in previous issues, dont hesitate to contribute to fx this problem, if you are able to. If you're not, I'll try to fix it

Thanks

wq9578 commented 1 year ago

I can't, sorry, but thank you very much for your help! Maybe just using the newest version of smalot/pdfparser will solve the problem.

benito103e commented 10 months ago

Closed with #28 : you can upgrade to v2 of this library !