PHPackages                             catalyst/servant - 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. catalyst/servant

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

catalyst/servant
================

Catalyst Servant Dependency Inhibitor Library

v0.1.1(9y ago)2161MITPHPPHP &gt;=7.0

Since Jan 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/CatalystCollective/Servant)[ Packagist](https://packagist.org/packages/catalyst/servant)[ RSS](/packages/catalyst-servant/feed)WikiDiscussions master Synced 2mo ago

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

Servant
=======

[](#servant)

Catalyst Servant - Dependency Inhibitor Library

### What is Servant ?

[](#what-is-servant-)

Servant is a dependency inhibitor based on a chain of responsibility. Servant provides the ability to resolve a given dependency based on a class name or a `ReflectionParameter`-Instance.

### Usage

[](#usage)

```
use Catalyst\Servant\{
    RepositoryServant,
    BlindServant
};

$servant = new RepositoryServant();
$servant->chain(new BlindServant());
$servant->ensure(DateTimeInterface::class, function() {
    return date_create();
});

$dateTime = $servant->resolve(DateTimeInterface::class);
```

### Boxed Servants

[](#boxed-servants)

This package serves the following `ServantInterface`-Implementations:

- `RepositoryServant` - A repository based servant that allows to assign aliases and interfaces to concretes.
- `BlindServant` - A blind servant that allows the instancing of objects out of the blue.
- `NullServant` - A null servant that returns null and acts as an end point to guarantee a null-result when no dependency resolver was successful.

### License and Maintainer(s)

[](#license-and-maintainers)

This package is licensed under the MIT license. This package is actively maintained by:

- Matthias Kaschubowski

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

2

Last Release

3395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/227851c0e1b423c7d7e6500c5ee45ff9911bbe1c53fff67b011fb055b9eeed43?d=identicon)[nihylum](/maintainers/nihylum)

---

Top Contributors

[![nhlm](https://avatars.githubusercontent.com/u/23406211?v=4)](https://github.com/nhlm "nhlm (3 commits)")

### Embed Badge

![Health badge](/badges/catalyst-servant/health.svg)

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

###  Alternatives

[superbig/craft3-mobiledetect

Use Mobile\_Detect for detecting mobile devices (including tablets)

1953.3k](/packages/superbig-craft3-mobiledetect)[maniruzzaman/laravel-unique-slug

A simple but beautiful unique slug generator for Laravel eloquent model.

111.8k](/packages/maniruzzaman-laravel-unique-slug)

PHPackages © 2026

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