PHPackages                             reliese/component-dependency - 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. reliese/component-dependency

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

reliese/component-dependency
============================

Dependencies Component

v1.0.0(5y ago)118[1 issues](https://github.com/reliese/php-component-dependency/issues)1MITPHPPHP &gt;=7.2

Since Mar 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/reliese/php-component-dependency)[ Packagist](https://packagist.org/packages/reliese/component-dependency)[ RSS](/packages/reliese-component-dependency/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Reliese Component Dependency
============================

[](#reliese-component-dependency)

This is the definition of a Dependency Container, also known as Inversion of Control Container, Service Container.

The Container Interface
-----------------------

[](#the-container-interface)

It comes with three groups of methods:

### Dependency Registration

[](#dependency-registration)

- Allows for singleton registration

```
/**
 * @param string $dependency
 * @param Closure $abstraction
 *
 * @return Container
 */
public function singleton(string $dependency, Closure $abstraction) : Container;
```

- Allows for a non singleton registration

```
/**
 * @param string $dependency
 * @param Closure $abstraction
 *
 * @return Container
 */
public function register(string $dependency, Closure $abstraction) : Container;
```

### Service Location

[](#service-location)

Each registered dependency can be retrieved with the `resolve` method.

```
/**
 * @param string $dependency
 *
 * @return mixed
 * @throws UnresolvableDependencyException
 */
public function resolve(string $dependency);
```

### Method Injection

[](#method-injection)

```
/**
 * @param object $object
 * @param string $method
 *
 * @return mixed
 * @throws UnresolvableDependencyException
 */
public function call(object $object, string $method);
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

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

1894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/161157728e499ea8f7d7745be53e9451b6bd1104eae79fb196adcd72a4dfbc6d?d=identicon)[CristianLlanos](/maintainers/CristianLlanos)

---

Top Contributors

[![CristianLlanos](https://avatars.githubusercontent.com/u/6595277?v=4)](https://github.com/CristianLlanos "CristianLlanos (2 commits)")

---

Tags

dependencycomponentreliese

### Embed Badge

![Health badge](/badges/reliese-component-dependency/health.svg)

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

###  Alternatives

[composer/composer

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

29.4k187.2M2.6k](/packages/composer-composer)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[contributte/di

Extra contrib to nette/di

465.8M18](/packages/contributte-di)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)

PHPackages © 2026

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