PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 5, 2022

[FIXED] Is there a tool that maps out a composer dependency tree?

 February 05, 2022     composer-php, php     No comments   

Issue

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 a composer.json file, which will tell you what co-dependencies there are, or (ideally) graphically display a tree of dependencies?


Solution

https://github.com/clue/graph-composer generates dependency graphs from composer.json files and outputs them in e.g. svg.



Answered By - cweiske
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing