PHPackages                             takaram/nano-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. [Framework](/categories/framework)
4. /
5. takaram/nano-di

ActiveLibrary[Framework](/categories/framework)

takaram/nano-di
===============

Lightweight DI Container

0.0.1(1mo ago)00[1 issues](https://github.com/takaram/nano-di/issues)[1 PRs](https://github.com/takaram/nano-di/pulls)MITPHPPHP &gt;=8.3CI passing

Since Apr 12Pushed 3w agoCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

nano-di
=======

[](#nano-di)

`takaram/nano-di` is a tiny PSR-11 dependency injection container for PHP.

It is intentionally small: no configuration DSL, no attributes, no service providers, and no compile step. In return, it gives you a lightweight container that can resolve ordinary constructor-injected objects with very little setup.

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

[](#installation)

```
composer require takaram/nano-di
```

Requirements
------------

[](#requirements)

- PHP 8.3 or later
- `psr/container` 2.0

Quick Start
-----------

[](#quick-start)

```
