PHPackages                             bleicker/objectmanager - 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. bleicker/objectmanager

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

bleicker/objectmanager
======================

1.1.3(11y ago)02617PHP

Since Apr 24Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (12)Used By (7)

Info
====

[](#info)

ObjectManager is a container to register objects

Usage
-----

[](#usage)

- ObjectManager::register(MyClassInterface::class, new MyClass('foo', 'bar'));
- Getting the Object everywhere in your Code with ObjectManager::get(MyClassInterface::class);

### Registering a Closure as Factory

[](#registering-a-closure-as-factory)

- ObjectManager::register(MyClassInterface::class, function(){new MyClass()});
- To make it a singleton just register it as this: ObjectManager::makeSingleton(MyClassInterface::class);
- Getting the Object everywhere in your Code with ObjectManager::get(MyClassInterface::class);

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~1 days

Total

11

Last Release

4026d ago

### Community

Maintainers

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

---

Top Contributors

[![pumatertion](https://avatars.githubusercontent.com/u/1853527?v=4)](https://github.com/pumatertion "pumatertion (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bleicker-objectmanager/health.svg)

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

###  Alternatives

[nojimage/cakephp-environment

CakePHP Environment Plugn. The configuration switching library by filebase.

11242.5k](/packages/nojimage-cakephp-environment)

PHPackages © 2026

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