shalvah / syringe

此包已 废弃 并不再维护。未建议替代包。

PHP的小型依赖注入容器

1.3 2017-05-20 19:05 UTC

This package is auto-updated.

Last update: 2021-06-11 21:40:20 UTC


README

Latest Stable Version Total Downloads License

简单的PSR-11兼容PHP依赖注入容器

文档

完整文档

安装

composer require shalvah/syringe

设置

  • 克隆仓库
git clone https://github.com/shalvah/syringe
  • 安装依赖
composer install
  • 运行测试
./vendor/bin/phpunit tests 
# on Windows: vendor\bin\phpunit tests 

API文档

在此处查看API文档 这里