Download the PHP package shipmonk/composer-dependency-analyser without Composer

On this page you can find all versions of the php package shipmonk/composer-dependency-analyser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package composer-dependency-analyser

Composer dependency analyser

Comparison:

Project Dead
dependency
Shadow
dependency
Misplaced
in require
Misplaced
in require-dev
Time*
maglnet/
composer-require-checker
❌ βœ… ❌ ❌ 124 secs
icanhazstring/
composer-unused
βœ… ❌ ❌ ❌ 72 secs
shipmonk/
composer-dependency-analyser
βœ… βœ… βœ… βœ… 2 secs

*Time measured on codebase with ~15 000 files

Installation:

Note that this package itself has zero composer dependencies.

Usage:

Example output:

Detected issues:

This tool reads your composer.json and scans all paths listed in autoload & autoload-dev sections while analysing you dependencies (both packages and PHP extensions).

Shadowed dependencies

Unused dependencies

Dev dependencies in production code

Prod dependencies used only in dev paths

Unknown classes

Unknown functions

Cli options:

Configuration:

When a file named composer-dependency-analyser.php is located in cwd, it gets loaded automatically. The file must return ShipMonk\ComposerDependencyAnalyser\Config\Configuration object. You can use custom path and filename via --config cli option. Here is example of what you can do:

All paths are expected to exist. If you need some glob functionality, you can do it in your config file and pass the expanded list to e.g. ignoreErrorsOnPaths.

Detecting classes from non-php files:

Some classes might be used only in your DIC config files. Here is a simple way to extract those:

Similar approach should help you to avoid false positives in unused dependencies. Another approach for DIC-only usages is to scan the generated php file, but that gave us worse results.

Scanning codebase located elsewhere:

Disable colored output:

Recommendations:

Contributing:

Supported PHP versions


All versions of composer-dependency-analyser with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
ext-json Version *
ext-tokenizer Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shipmonk/composer-dependency-analyser contains the following files

Loading the files please wait ....