PHPackages                             super-kernel/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. super-kernel/di

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

super-kernel/di
===============

The di component for super-kernel.

01768PHP

Since Apr 2Pushed 2mo agoCompare

[ Source](https://github.com/super-kernel/di)[ Packagist](https://packagist.org/packages/super-kernel/di)[ RSS](/packages/super-kernel-di/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (5)Versions (3)Used By (8)

Super-Kernel DI
---------------

[](#super-kernel-di)

[![Latest Version on Packagist](https://camo.githubusercontent.com/24163f2a2eecfeddc6e9557b109ac8033272d3b1a6ea88840da7310ce743eb2e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757065722d6b65726e656c2f64692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/super-kernel/di)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/7c0855327b21ccc9b5e1eccc0c0125215017f7a30c7e72e12245513002c49a6a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e382e342e302d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7c0855327b21ccc9b5e1eccc0c0125215017f7a30c7e72e12245513002c49a6a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d7e382e342e302d3838393262662e7376673f7374796c653d666c61742d737175617265)

**Super-Kernel DI** is a specialized Dependency Injection container designed for the super-kernel framework.

### 💡 Core Philosophy

[](#-core-philosophy)

This container strictly adheres to [PSR-11](https://www.php-fig.org/psr/psr-11/) but introduces a specific management strategy to ensure performance and architectural clarity:

- Long-lived Object Management: The container is exclusively responsible for managing objects that persist throughout the application lifecycle (e.g., singletons, shared services, configuration).
- Caller Autonomy: In accordance with the PSR-11 meta-document, short-lived objects (request-specific or transient objects) should be managed by the caller, not the container. This prevents the "Service Locator" antipattern and keeps the container overhead minimal.

### 🛠️ Requirements

[](#️-requirements)

- PHP: ^8.4 (utilizing the latest engine features and property hooks)
- Framework: [super-kernel](https://github.com/super-kernel) core

### 🚀 Installation

[](#-installation)

Install the package via [Composer](https://getcomposer.org/):

```
composer require super-kernel/di
```

### 📝 Key Features

[](#-key-features)

- PSR-11 Compliant: Fully compatible with any standards-compliant library.
- Modern PHP Stack: Leveraging PHP 8.4's strict typing and performance optimizations.
- Lightweight Footprint: Focused on long-lived service resolution to reduce memory consumption.
- Alpha Status: Under active development, open for architectural feedback.

### 📖 Quick Usage

[](#-quick-usage)

As a component of the super-kernel ecosystem, the DI container is typically initialized by the framework kernel. For manual usage:

```
use SuperKernel\Context\ApplicationContext;
use SuperKernel\Contract\ApplicationInterface;

ApplicationContext::getContainer()->get(ApplicationInterface::class)->run();
```

### ⚠️ Project Status

[](#️-project-status)

This project is currently in its Alpha stage:

- The API is unstable and subject to breaking changes.
- Production use is not recommended at this time.
- We encourage developers to experiment and provide feedback via Issues or Pull Requests.

### 🤝 Contributing

[](#-contributing)

Contributions are what make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

### ⚖️ License

[](#️-license)

Distributed under the **MIT License**.Copyright © 2024-2026 **super-kernel**.

See the [LICENSE](https://github.com/super-kernel/di/blob/main/LICENSE) file for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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

96d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78034820?v=4)[wheakerd](/maintainers/wheakerd)[@wheakerd](https://github.com/wheakerd)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/super-kernel-di/health.svg)

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

###  Alternatives

[maclof/kubernetes-client

A simple yet elegant client for accessing and controlling a Kubernetes cluster.

234907.8k4](/packages/maclof-kubernetes-client)[icamys/php-sitemap-generator

Simple PHP sitemap generator.

175356.9k7](/packages/icamys-php-sitemap-generator)[wyrihaximus/psr-15-cat

CAT!

124.3k2](/packages/wyrihaximus-psr-15-cat)

PHPackages © 2026

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