PHPackages                             hypejunction/elgg-di - 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. hypejunction/elgg-di

ActiveLibrary

hypejunction/elgg-di
====================

Dependency Injection container for Elgg

1.1.2(6y ago)0601GPL-2.0PHPPHP &gt;=7.0

Since Feb 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/hypeJunction/elgg-di)[ Packagist](https://packagist.org/packages/hypejunction/elgg-di)[ Docs](http://hypejunction.com)[ RSS](/packages/hypejunction-elgg-di/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (1)

Dependency Injection for Elgg
=============================

[](#dependency-injection-for-elgg)

[![Elgg 2.3](https://camo.githubusercontent.com/cfd1f9530e267f480ce207ec10333e3a5ffc64bd5e292306d6431ec406aee1d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/cfd1f9530e267f480ce207ec10333e3a5ffc64bd5e292306d6431ec406aee1d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d322e332e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Features
--------

[](#features)

- PHP-DI integration for Elgg

Usage
-----

[](#usage)

### Installation

[](#installation)

- Place the plugin above all others in your plugin list and enable

### Service Registration

[](#service-registration)

- To register a new service, add `config/di.php` to your plugin root and return an array of services you want to register
- You can access services via `elgg_di()->$service_name`

### Container Compilation

[](#container-compilation)

- To disable container compilation/caching - set `$CONFIG->environment = 'development'`

### Plugin Config

[](#plugin-config)

- You can set site-wide config by creating `oonfig/config.php` in your plugin, and returning an array of key value pairs. Note that plugins with higher priority with override config previously defined in other plugins.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Recently: every ~25 days

Total

7

Last Release

2542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

[![hypeJunction](https://avatars.githubusercontent.com/u/1202761?v=4)](https://github.com/hypeJunction "hypeJunction (14 commits)")

---

Tags

plugindependency-injectionelgg

### Embed Badge

![Health badge](/badges/hypejunction-elgg-di/health.svg)

```
[![Health](https://phpackages.com/badges/hypejunction-elgg-di/health.svg)](https://phpackages.com/packages/hypejunction-elgg-di)
```

PHPackages © 2026

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