PHPackages                             achertovsky/phpdrc - 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. achertovsky/phpdrc

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

achertovsky/phpdrc
==================

dependency rule checker

0.3.1(1y ago)12.4k↓50%1PHPPHP ^8.2

Since Mar 5Pushed 1y ago2 watchersCompare

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

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

User
====

[](#user)

why?
----

[](#why)

A tool that called to help checking dependency rule and not allow its violations.

usage
-----

[](#usage)

### Config

[](#config)

Requires config to work. Example of config:

```
namespaces:
    namespace\you\want\to\keep\clean:
        - namespace\you\allow\there1
        - namespace\you\allow\there2
exclude:
    - path/to/dir
    - path/to/file.php

```

Keep in mind that in namespaces you want to check also in a list of allowed. So if you check `App\Core` all uses with that namespace prefix would be automatically allowed. If multiple entries match, the first matching entry will be the only one to be used.

Development
===========

[](#development)

install env
-----------

[](#install-env)

```
docker build -t phpdrc .
docker run -m 200m --cpus 0.3 --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp phpdrc composer i

```

testing
-------

[](#testing)

```
docker run -eXDEBUG_MODE=off -m 200m --cpus 0.3 --rm -it -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp phpdrc vendor/bin/phpunit

```

testing with xdebugging (xdebug on 9001 by default)
---------------------------------------------------

[](#testing-with-xdebugging-xdebug-on-9001-by-default)

```
docker run -m 200m --cpus 0.3 --rm -it --add-host=host.docker.internal:host-gateway -u $(id -u):$(id -g) -w /tmp -v ${PWD}:/tmp phpdrc vendor/bin/phpunit

```

build
-----

[](#build)

```
docker run -m 200m --cpus 0.3 --rm -it --add-host=host.docker.internal:host-gateway -u $(id -u):$(id -g) -w /tmp -e XDEBUG_MODE=off -v ${PWD}:/tmp phpdrc sh build.sh

```

### code analysis

[](#code-analysis)

```
docker run --rm -it -u ${UID} -v ${PWD}:/app -w /app achertovsky/phptools all
// if want to analyze only staged files
docker run --rm -it -u ${UID} -v ${PWD}:/app -w /app achertovsky/phptools all -m

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~127 days

Total

3

Last Release

548d ago

### Community

Maintainers

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

---

Top Contributors

[![achertovsky](https://avatars.githubusercontent.com/u/13575044?v=4)](https://github.com/achertovsky "achertovsky (14 commits)")[![feraldrood](https://avatars.githubusercontent.com/u/7203522?v=4)](https://github.com/feraldrood "feraldrood (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/achertovsky-phpdrc/health.svg)

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

###  Alternatives

[dave-liddament/php-language-extensions

Attributes for extending the PHP language, using static analysis to enforce new language constructs

186481.7k3](/packages/dave-liddament-php-language-extensions)[a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

41319.9k](/packages/a6digital-laravel-default-profile-image)

PHPackages © 2026

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