2017 © Pedro PelΓ‘ez
 

library cyclophp

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

image

itmh/cyclophp

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  • Wednesday, September 7, 2016
  • by chshanovskiy
  • Repository
  • 7 Watchers
  • 0 Stars
  • 2,082 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

cyclophp

cyclophp is a tool calculating cyclomatic complexity of public methods, (*1)

Latest Stable Version, (*2)

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:, (*3)

{
    "require-dev": {
        "itmh/cyclophp": "*"
    }
}

For a system-wide installation via Composer, you can run:, (*4)

composer global require 'itmh/cyclophp=*'

Make sure you have ~/.composer/vendor/bin/ in your path., (*5)

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          |
+-----------------------------------------+------------+

The Versions

07/09 2016

dev-master

9999999-dev

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim

07/09 2016

v1.0.4

1.0.4.0

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim

23/06 2016

v1.0.3

1.0.3.0

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim

23/06 2016

v1.0.2

1.0.2.0

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim

23/06 2016

v1.0.1

1.0.1.0

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim

23/06 2016

v1.0.0

1.0.0.0

Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚ для подсчёта Ρ†ΠΈΠΊΠ»ΠΎΠΌΠ°Ρ‚ΠΈΠΊΠΈ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Ρ… ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠ²

  Sources   Download

MIT

The Requires

 

by Chshanovskiy Maxim