PHPackages                             itmh/cyclophp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. itmh/cyclophp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

itmh/cyclophp
=============

Инструмент для подсчёта цикломатики публичных методов

v1.0.4(9y ago)04.1k↑800%2[4 issues](https://github.com/itmh/cyclophp/issues)[1 PRs](https://github.com/itmh/cyclophp/pulls)1MITPHP

Since Jun 23Pushed 8y ago6 watchersCompare

[ Source](https://github.com/itmh/cyclophp)[ Packagist](https://packagist.org/packages/itmh/cyclophp)[ RSS](/packages/itmh-cyclophp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (1)

cyclophp
========

[](#cyclophp)

`cyclophp` is a tool calculating cyclomatic complexity of public methods

[![Latest Stable Version](https://camo.githubusercontent.com/141066ad13dd549bb093fdde558b7bc83270f30322c0f6402dea2f116661baa5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69746d682f6379636c6f7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itmh/cyclophp)

Installation
------------

[](#installation)

### Composer

[](#composer)

Simply add a dependency on `itmh/cyclophp` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) 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
--------------

[](#usage-examples)

### Analyse a directory and print the result

[](#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

[](#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          |
+-----------------------------------------+------------+

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

5

Last Release

3532d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d40c2da0e10d1357863c73ba553fc6d6db623e06bdf684e3b9e8f877d06b98ea?d=identicon)[chshanovskiy](/maintainers/chshanovskiy)

---

Top Contributors

[![chshanovskiy](https://avatars.githubusercontent.com/u/8307163?v=4)](https://github.com/chshanovskiy "chshanovskiy (14 commits)")

### Embed Badge

![Health badge](/badges/itmh-cyclophp/health.svg)

```
[![Health](https://phpackages.com/badges/itmh-cyclophp/health.svg)](https://phpackages.com/packages/itmh-cyclophp)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M567](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
