cal-container 说明 基于反射实现的php容器项目,包含自动注入,静态注册,动态注册,动态传参等功能 遵循PSR-11容器规范 安装 composer require 'cal-container/cal-container' 使用说明 参考: 关于PSR php-fig 容器规范 PSR-11 容器接口 PSR-11 容器接口 - 说明文档 github上现有的php容器部分开源项目 php-di silexphp/Pimple laravel-container 反射api Reflection ReflectionClass ReflectionObject ReflectionMethod ReflectionFunction ReflectionProperty 测试 phpunit plan 注解实现 @dataProvider 数据提供 @decorator 装饰器 @exception 异常处理 @final final处理(在所有注解处理完成,函数返回前) @tag(...) tag数据 aop实现(利用装饰器特征)