php - Is there a tool that maps out a composer dependency tree?
Get the solution ↓↓↓There is an existing problem with composer-php described in this question:
How to prevent PHP namespace conflicts (pre-bundled packages)
In a nutshell, suppose we have an application MyApp, which depends on two third party libraries, Foo v1 and Bar v1. These two libraries in turn both depend on the library Baz v1. We want to upgrade to Bar v2, but it depends on Baz v2, which has backwards incompatible changes, and will hence break Foo v1.
Are there any tools that you can point to acomposer.json
file, which will tell you what co-dependencies there are, or (ideally) graphically display a tree of dependencies?
Answer
Solution:
https://github.com/clue/graph-composer generates dependency graphs from composer.json files and outputs them in e.g. svg.
Answer
Solution:
Here's a more recently added (March 2021) library that uses the D3JS 'Collapsible tree' visualization: https://github.com/markfullmer/dependency_tree
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: trying to access array offset on value of type bool in
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.