fastd / container
FastD 容器
v5.0.0
2020-11-18 03:55 UTC
Requires
- php: >=7.2
- psr/container: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-08-24 06:58:30 UTC
README
简单的PHP对象容器,DI组件已独立维护: di
要求
- PHP >=7.2
安装
composer require "fastd/container"
使用
$container = new FastD\Container\Container(); $container->add('timezone', DateTimeZone::class); $timezone = $this->container->get('timezone'); $this->assertInstanceOf(DateTimeZone::class, $timezone);
测试
bin/phpunit
贡献
非常欢迎感兴趣,愿意参与其中,共同打造更好PHP生态,Swoole生态的开发者。
如果你对此感兴趣,但不知从何开始,可以尝试以下这些事情:
- 在你的系统中使用,遇到的问题可以 反馈。
- 有更好的建议?欢迎联系 bboyjanhuang@gmail.com 或 新浪微博:编码侠。
联系方式
如果你在使用过程中遇到问题,请联系: bboyjanhuang@gmail.com. 微博: 编码侠