Download the PHP package andrey-tech/pdepend-summary-formatter-php without Composer

On this page you can find all versions of the php package andrey-tech/pdepend-summary-formatter-php. 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 pdepend-summary-formatter-php

Pdepend Summary Formatter

Latest Stable Version PHP Version Require License

Pdepend Summary Formatter is a tool to show software code quality metrics, measured by PHP Depend (pdepend), in console for development and in CI/CD pipeline.

Table of contents

Installation

Pdepend Summary Formatter tool requires PHP >= 7.4, latest version of PHP Depend and Composer.

Generate a default config file pdepend-summary-formatter.yml.dist in current working directory:

Then run PHP Depend to scan your source PHP-code in directory src and generate an XML report in file summary.xml:

Then run Pdepend Summary Formatter tool to show code quality metrics, measured by PHP Depend, in console and to write results to specified text file summary.txt:

Command line options

The Pdepend Summary Formatter tool command line interface also accepts the following optional arguments:

An example command line of Pdepend Summary Formatter tool and PHP Depend tool:

An example of output text file summary.txt:

Software metrics

PHP Depend (pdepend) tool can generate a large set of software metrics from a given code base. These values can be used to measure the quality of a software project and they help to identify that parts of an application where a refactoring should be applied.

Pdepend Summary Formatter tool shows only the part of software metrics, measured by PHP Depend, and shows them in green, yellow and red colors in the console, according to boundaries for values, defined in configuration YAML file.

This table shows a list of the software metrics by Pdepend Summary Formatter tool for entire project, classes, traits, methods. The table also shows the default values for "red" boundaries of software metrics, based on PHP Mess Detector (PHPMD) tool.

Metric Description Project Class Trait Method
avg mi Average Maintainability Index 50
cbo Coupling Between Objects 13 13
ccn Cyclomatic Complexity Number 10
ccn2 Extended Cyclomatic Complexity Number 10
cis Class Interface Size 45 45
crap0 Change Risk Analysis and Predictions Index for 0% coverage 29
dit Depth of Inheritance Tree 6
hb Halstead Bugs
hd Halstead Difficulty
he Halstead Effort
hi Halstead Intelligence Content
hl Halstead Level
hnd Halstead Vocabulary
hnt Halstead Length
ht Halstead Programming Time
hv Halstead Volume
lloc Logical Lines Of Code
loc Lines Of Code 1000 100
max mi Maximum of Maintainability Index 50
mi Maintainability Index 50
min mi Minimum of Maintainability Index 50
nocc Number Of Child Classes 15
ncloc Non Comment Lines Of Code
noc Number Of Classes
nof Number Of Functions
noi Number Of Interfaces
nom Number Of Methods 25
npm Number of Public Methods 20 20
npath NPath Complexity 200
nop Number of Packages (namespaces)
std mi Standard deviation of Maintainability Index
vars Number of Properties 15 15
wmc Weighted Method Count 50 50

Note: ✓ — means there are no defined "red" color boundaries for this metric.

Configuration YAML file

By default Pdepend Summary Formatter tool is looking for following configuration YAML files is current working directory:

Configuration YAML file allows to set color boundaries for values of software metrics.

Pdepend Summary Formatter tool currently defines three color boundaries:

Color Description
green Ok
yellow Warning
red Error

A white value means there are no defined color boundaries for this metric.

You can also add/set custom colors and styles. See How to Color and Style the Console Output in Symfony console.

Fragment of default configuration file:

Exit codes

Pdepend Summary Formatter tool currently defines four different exit codes:

Code Description
0 This exit code indicates that everything worked as expected without "red" or "yellow" metrics.
1 This exit code indicates that an error/exception occurred which has interrupted tool during execution.
2 This exit code means that tool has processed the summary file without the occurrence of an error/exception with "red" metrics.
3 This exit code means that tool has processed the summary file without the occurrence of an error/exception with "yellow" metrics.

Authors and Maintainers

The author and maintainer of Pdepend Summary Formatter tool is andrey-tech.

License

This tool is licensed under the MIT license.


All versions of pdepend-summary-formatter-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-simplexml Version *
symfony/console Version ^4.4 || ^5.4 || ^6.3 || ^7.1
symfony/yaml Version ^4.4 || ^5.4 || ^6.3 || ^7.1
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 andrey-tech/pdepend-summary-formatter-php contains the following files

Loading the files please wait ....