Download the PHP package next/di without Composer
On this page you can find all versions of the php package next/di. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor next
Package di
Short Description A lightweight dependency injection tool, container based on the PSR-11 specification.
License Apache-2.0
Homepage https://github.com/next-laboratory/di
Package di
Short Description A lightweight dependency injection tool, container based on the PSR-11 specification.
License Apache-2.0
Homepage https://github.com/next-laboratory/di
Please rate this library. Is it a good library?
Informations about the package di
一款简单的容器,所有被容器实例化的类以及所有依赖都是单例
安装
环境要求 PHP >= 8.0
使用
获取容器实例,注意不要直接实例化
绑定类和别名,之后所有容器接口都可以使用TestInterface::class标识来获取Test::class实例
实例化
获取对象
调用方法
注意:所有需要传参的api均需要关联数组,数组的键为参数的名字
All versions of di with dependencies
PHP Build Version
Package Version
The package next/di contains the following files
Loading the files please wait ....