PHPackages                             tasuku43/dependency-analyzer - 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. tasuku43/dependency-analyzer

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

tasuku43/dependency-analyzer
============================

Check the dependencies of PHP classes

0.1.0(4y ago)06MITPHPPHP ^8.0

Since Jun 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tasuku43/dependency-analyzer)[ Packagist](https://packagist.org/packages/tasuku43/dependency-analyzer)[ RSS](/packages/tasuku43-dependency-analyzer/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Dependency Analyzer for PHP
===========================

[](#dependency-analyzer-for-php)

Overview
--------

[](#overview)

Analyze dependencies on specific classes.We hope this will be useful for major version upgrades of dependent libraries. For example, if you know that there is a disruptive change in a particular class, you can immediately see which classes in your project are affected. Combined with a library upgrade tool such as [dependebot](https://github.com/dependabot/dependabot-core), it is also possible to comment the affected classes in the generated PR.

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

[](#installation)

Via Composer

```
composer require --dev tasuku43/dependency-analyzer
```

Usage
-----

[](#usage)

Use [laravel/laravel](https://github.com/laravel/laravel) as a sample project to check the operation.

```
$ tree -L 1
.
├── README.md
├── app
├── artisan
├── bootstrap
├── composer.json
├── composer.lock
├── config
├── database
├── lang
├── package.json
├── phpunit.xml
├── public
├── resources
├── routes
├── storage
├── tests
├── vendor
└── webpack.mix.js

11 directories, 7 files
```

### Check the list of classes that depend on the specified namespace

[](#check-the-list-of-classes-that-depend-on-the-specified-namespace)

```
$ ./vendor/bin/dependency-analyzer analyse --path app --pattern "Illuminate\Support"
 [============================] 100%
 ---------------- ------------------------------------
  Depender         App\Providers\AppServiceProvider
 ---------------- ------------------------------------
  Dependent List   Illuminate\Support\ServiceProvider
 ---------------- ------------------------------------

 ---------------- -----------------------------------
  Depender         App\Providers\AuthServiceProvider
 ---------------- -----------------------------------
  Dependent List   Illuminate\Support\Facades\Gate
 ---------------- -----------------------------------

 ---------------- ----------------------------------------
  Depender         App\Providers\RouteServiceProvider
 ---------------- ----------------------------------------
  Dependent List   Illuminate\Support\Facades\RateLimiter
                   Illuminate\Support\Facades\Route
 ---------------- ----------------------------------------

 ---------------- ----------------------------------------
  Depender         App\Providers\BroadcastServiceProvider
 ---------------- ----------------------------------------
  Dependent List   Illuminate\Support\Facades\Broadcast
                   Illuminate\Support\ServiceProvider
 ---------------- ----------------------------------------

 ---------------- ------------------------------------
  Depender         App\Providers\EventServiceProvider
 ---------------- ------------------------------------
  Dependent List   Illuminate\Support\Facades\Event
 ---------------- ------------------------------------

 ---------------- ---------------------------------------------
  Depender         App\Http\Middleware\RedirectIfAuthenticated
 ---------------- ---------------------------------------------
  Dependent List   Illuminate\Support\Facades\Auth
 ---------------- ---------------------------------------------

 [OK] Found 6 dependers
```

### Check the list of classes that depend on the specified class.

[](#check-the-list-of-classes-that-depend-on-the-specified-class)

```
$ ./vendor/bin/dependency-analyzer analyse --path app --pattern "Illuminate\Support\ServiceProvider"
 [============================] 100%
 ---------------- ------------------------------------
  Depender         App\Providers\AppServiceProvider
 ---------------- ------------------------------------
  Dependent List   Illuminate\Support\ServiceProvider
 ---------------- ------------------------------------

 ---------------- ----------------------------------------
  Depender         App\Providers\BroadcastServiceProvider
 ---------------- ----------------------------------------
  Dependent List   Illuminate\Support\ServiceProvider
 ---------------- ----------------------------------------

 [OK] Found 2 dependers
```

### Check the list of classes that depend on the specified class by grouping them with Dependent Classe.

[](#check-the-list-of-classes-that-depend-on-the-specified-class-by-grouping-them-with-dependent-classe)

```
$ ./vendor/bin/dependency-analyzer analyse --path app --pattern "Illuminate\Support\ServiceProvider" --group-by dependent
 [============================] 100%
 --------------- ----------------------------------------
  Dependent       Illuminate\Support\ServiceProvider
 --------------- ----------------------------------------
  Depender List   App\Providers\AppServiceProvider
                  App\Providers\BroadcastServiceProvider
 --------------- ----------------------------------------

 [OK] Found 1 dependents
```

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/tasuku43/puml2php/blob/main/LICENSE) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1477d ago

### Community

Maintainers

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

---

Top Contributors

[![tasuku43](https://avatars.githubusercontent.com/u/43329036?v=4)](https://github.com/tasuku43 "tasuku43 (27 commits)")

---

Tags

phpdependency

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tasuku43-dependency-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/tasuku43-dependency-analyzer/health.svg)](https://phpackages.com/packages/tasuku43-dependency-analyzer)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[friendsoftypo3/content-blocks

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

103519.9k53](/packages/friendsoftypo3-content-blocks)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

190438.1k37](/packages/brianhenryie-strauss)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)

PHPackages © 2026

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