PHPackages                             solution10/managed-instance - 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. solution10/managed-instance

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

solution10/managed-instance
===========================

A simple trait to allow classes to manage their own instances. DI on the cheap.

v1.0.0(11y ago)0457↑400%1MITPHPPHP &gt;= 5.4

Since Nov 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Solution10/managed-instance)[ Packagist](https://packagist.org/packages/solution10/managed-instance)[ RSS](/packages/solution10-managed-instance/feed)WikiDiscussions master Synced 1mo ago

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

Solution10\\Managed-Instance
============================

[](#solution10managed-instance)

Allows classes to manage instances of themselves either as singletons or "lazy DI" containers.

[![Build Status](https://camo.githubusercontent.com/bb481a0a6b1ec86c2fd63e1d515f1e1bd52bdd2c8532bd85dfc347c95e346369/68747470733a2f2f7472617669732d63692e6f72672f536f6c7574696f6e31302f6d616e616765642d696e7374616e63652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Solution10/managed-instance)[![Coverage Status](https://camo.githubusercontent.com/8b3931392f604210c5543ef58d6a819c8b33258bbdc71a5fa08254a4a23d98f6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f536f6c7574696f6e31302f6d616e616765642d696e7374616e63652f62616467652e706e67)](https://coveralls.io/r/Solution10/managed-instance)

[![Latest Stable Version](https://camo.githubusercontent.com/67dffd4dcd1c5769af7717f393568bc592dfbc72eb22ea950cd25b070b399925/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f6d616e616765642d696e7374616e63652f762f737461626c652e737667)](https://packagist.org/packages/solution10/managed-instance)[![Total Downloads](https://camo.githubusercontent.com/8866f68a2186edf8cd5483222f64e4a09714dfd60d00b2025f3419dd312f3d8c/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f6d616e616765642d696e7374616e63652f646f776e6c6f6164732e737667)](https://packagist.org/packages/solution10/managed-instance)[![License](https://camo.githubusercontent.com/e3ceacec6d63ad48a6a5a052e99cec661d054b5bbe5d3115a9e5f249764937be/68747470733a2f2f706f7365722e707567782e6f72672f736f6c7574696f6e31302f6d616e616765642d696e7374616e63652f6c6963656e73652e737667)](https://packagist.org/packages/solution10/managed-instance)

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

[](#installation)

Installation is via composer, in the usual manner:

```
{
    "require": {
        "solution10/managed-instance": "~1.0"
    }
}
```

Documentation
-------------

[](#documentation)

### Userguide

[](#userguide)

[Check out the Wiki](https://github.com/solution10/managed-instance/wiki)

(or the /docs folder in the repo)

### API Docs

[](#api-docs)

From a checkout of this project, run:

```
$ make

```

This will create an api/ folder for you to peruse.

PHP Requirements
----------------

[](#php-requirements)

- PHP &gt;= 5.4

Author
------

[](#author)

Alex Gisby: [GitHub](http://github.com/alexgisby), [Twitter](http://twitter.com/alexgisby)

License
-------

[](#license)

[MIT](http://github.com/solution10/managed-instance/tree/master/LICENSE.md)

Contributing
------------

[](#contributing)

[Contributors Notes](http://github.com/solution10/managed-instance/tree/master/CONTRIBUTING.md)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4201d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/231595?v=4)[Alex Gisby](/maintainers/alexgisby)[@alexgisby](https://github.com/alexgisby)

---

Top Contributors

[![alexgisby](https://avatars.githubusercontent.com/u/231595?v=4)](https://github.com/alexgisby "alexgisby (9 commits)")

---

Tags

componentinstances

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/solution10-managed-instance/health.svg)

```
[![Health](https://phpackages.com/badges/solution10-managed-instance/health.svg)](https://phpackages.com/packages/solution10-managed-instance)
```

###  Alternatives

[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[lochmueller/autoloader

Automatic components loading of ExtBase extensions to get more time for coffee in the company ;) This ext is not a PHP SPL autoloader or class loader - it is better! Loads CommandController, Xclass, Hooks, FlexForms, Slots, TypoScript, TypeConverter, BackendLayouts and take care of createing needed templates, TCA configuration or translations at the right location.

19364.9k5](/packages/lochmueller-autoloader)[tomatophp/filament-icons

Picker &amp; Table Column &amp; Icons Provider for FilamentPHP

3598.2k13](/packages/tomatophp-filament-icons)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[fsi/datagrid

FSi DataGrid Component

2761.5k2](/packages/fsi-datagrid)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)

PHPackages © 2026

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