PHPackages                             marcosh/phriendly-dependencies - 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. [Security](/categories/security)
4. /
5. marcosh/phriendly-dependencies

AbandonedLibrary[Security](/categories/security)

marcosh/phriendly-dependencies
==============================

A tool to check if you are accessing dependencies you should not have access to

0.1(9y ago)04MITPHPPHP 7.1

Since Feb 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/marcosh/phriendly-dependencies)[ Packagist](https://packagist.org/packages/marcosh/phriendly-dependencies)[ RSS](/packages/marcosh-phriendly-dependencies/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

phriendly-dependencies
======================

[](#phriendly-dependencies)

A tool to check if you are accessing dependencies you should not have access to.

At the moment it checks that you are using, in the `use` clauses at the beginning of your files, only classes which are contained in a namespace exposed by your own library or by a dependency explicitely declared in your `composer.json`.

In other words, this tool notifies you if you are using directly classes belonging to packages that are not first dependencies of your own library.

This is to avoid that changes in the dependencies of your dependencies could generate errors in your library.

install
-------

[](#install)

Install the library using

```
composer require marcosh/phriendly-dependencies
```

composer
--------

[](#composer)

Install dependencies using

```
composer install
```

If you are using Docker you could use

```
docker run --rm -ti -v $(pwd):/app -u $(id -u):$(id -g) -e "COMPOSER_HOME=/tmp/composer" composer install
```

run
---

[](#run)

Run the program with

```
php bin/phd.php -p $PATH_YOU_WANT_TO_ANALYZE
```

If you are using Docker you could use

```
docker run --rm -ti -v $(pwd):/app php:7.1 php /app/bin/phd.php -p $PATH_YOU_WANT_TO_ANALYZE
```

test
----

[](#test)

Run the tests with

```
php vendor/bin/phpunit
```

If you are using Docker you could use

```
docker run --rm -ti -v $(pwd):/app php:7.1 php /app/vendor/bin/phpunit -c /app/phpunit.xml
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3419d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2643972?v=4)[Marco Perone](/maintainers/marcosh)[@marcosh](https://github.com/marcosh)

---

Top Contributors

[![marcosh](https://avatars.githubusercontent.com/u/2643972?v=4)](https://github.com/marcosh "marcosh (1 commits)")

---

Tags

dependenciesphpphp-library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marcosh-phriendly-dependencies/health.svg)

```
[![Health](https://phpackages.com/badges/marcosh-phriendly-dependencies/health.svg)](https://phpackages.com/packages/marcosh-phriendly-dependencies)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[jolicode/castor

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

54642.4k4](/packages/jolicode-castor)[roave/backward-compatibility-check

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

5973.6M93](/packages/roave-backward-compatibility-check)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9184.1M24](/packages/phparkitect-phparkitect)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15311.8M36](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

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