Download the PHP package itmh/cyclophp without Composer
On this page you can find all versions of the php package itmh/cyclophp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download itmh/cyclophp
More information about itmh/cyclophp
Files in itmh/cyclophp
Download itmh/cyclophp
More information about itmh/cyclophp
Files in itmh/cyclophp
Vendor itmh
Package cyclophp
Short Description Инструмент для подсчёта цикломатики публичных методов
License MIT
Package cyclophp
Short Description Инструмент для подсчёта цикломатики публичных методов
License MIT
Please rate this library. Is it a good library?
Informations about the package cyclophp
cyclophp
cyclophp
is a tool calculating cyclomatic complexity of public methods
Installation
Composer
Simply add a dependency on itmh/cyclophp
to your project's composer.json
file if you use Composer to manage the dependencies of your project.
Here is a minimal example of a composer.json
file that just defines a development-time dependency on Cyclophp:
{
"require-dev": {
"itmh/cyclophp": "*"
}
}
For a system-wide installation via Composer, you can run:
composer global require 'itmh/cyclophp=*'
Make sure you have ~/.composer/vendor/bin/
in your path.
Usage Examples
Analyse a directory and print the result
$ cyclophp run src
6/6 [============================] 100%
10/10 [============================] 100%
+-----------------------------------+------------+
| Method | Complexity |
+-----------------------------------+------------+
| Cyclophp\SourceExtractor::extract | 3 |
| Cyclophp\Sorter::sort | 2 |
| Cyclophp\ComplexityCounter::count | 2 |
+-----------------------------------+------------+
Analyse with parameters
$ cyclophp run src --threshold=3 --public-only=no
6/6 [============================] 100%
22/22 [============================] 100%
+-----------------------------------------+------------+
| Method | Complexity |
+-----------------------------------------+------------+
| Cyclophp\SourceExtractor::extractMethod | 4 |
| Cyclophp\SourceExtractor::parse | 4 |
| Cyclophp\RunCommand::results | 3 |
| Cyclophp\ComplexityCounter::method | 3 |
| Cyclophp\SourceExtractor::extract | 3 |
+-----------------------------------------+------------+
All versions of cyclophp with dependencies
PHP Build Version
Package Version
Requires
symfony/console Version
^2.8||^3.0
symfony/finder Version ^2.8||^3.0
nikic/php-parser Version ^2.1
symfony/finder Version ^2.8||^3.0
nikic/php-parser Version ^2.1
The package itmh/cyclophp contains the following files
Loading the files please wait ....