一个简单的PHP依赖注入容器
github.com/toandp/di
主页
源代码
问题
安装: 3
依赖者: 0
建议者: 0
安全: 0
星标: 1
关注者: 2
分支: 0
开放问题: 0
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT a93f85c0a084455ed3473bb8e40197202e102fc0
dependency injectioncontainerdi
This package is auto-updated.
Last update: 2024-09-09 15:11:49 UTC
PHP tdp/di是一个小巧的PHP依赖注入容器。
在您的项目中使用PHP tdp/di之前,请将其添加到您的composer.json文件中
composer.json
$ ./composer.phar require toandp/di "^1.0"
创建容器只需创建一个Container实例即可
Container
use tdp\di\Container; $container = new Container();