Download the PHP package nusje2000/dependency-graph without Composer
On this page you can find all versions of the php package nusje2000/dependency-graph. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nusje2000/dependency-graph
More information about nusje2000/dependency-graph
Files in nusje2000/dependency-graph
Package dependency-graph
Short Description A PHP Library for resolving, visualizing and validating composer dependencies within a repository. Works within a monolithic repository as well.
License MIT
Informations about the package dependency-graph
Dependency graph
This package can be used to create a list of used packages and their dependencies.
Installation
Using composer:
Usage
The build method uses 3 parameters:
- The root path, this is the path to the root of your project.
- The builder, this class is used to build the dependency graph (leave null for default implementation).
- The cache class, this class will be used to cache the result or to load the graph from if a cache exists.
Visualizing dependencies
You can visualize the dependency graph by using vendor/bin/dependency-graph search
.
This console command can be used to search through the graph and look at
information about certain packages. This command is still being worked on.
There is also a command for only visualizing a package (without the
search dialog). i.e. you can use vendor/bin/dependency-graph info nusje2000/dependency-graph
to see the dependencies of this package.
Validating the dependency graph in monolithic repositories
This package can be used to fetch all the packages defined in monolithic
repositories. This has been implemented into a command in the
nusje2000/composer-monolith
package, which can be used to validate
internal and external dependencies in a monolithic repository.
Accessing the dependency graph
All versions of dependency-graph with dependencies
aeviiq/collection Version ^3.1 || ^4.0
symfony/finder Version ^4.4|^5.0|^6.0
myclabs/php-enum Version ^1.7
symfony/console Version ^4.4|^5.0|^6.0