fastd/container

FastD Container

v5.0.0 2020-11-18 03:55 UTC

README

Building Latest Stable Version Total Downloads Latest Unstable Version License

简单的PHP对象容器,DI组件已经独立维护: di

Requirements

  • PHP >=7.2

Installation

composer require "fastd/container"

Usage

$container = new FastD\Container\Container();
$container->add('timezone', DateTimeZone::class);
$timezone = $this->container->get('timezone');
$this->assertInstanceOf(DateTimeZone::class, $timezone);

Testing

bin/phpunit

贡献

非常欢迎感兴趣,愿意参与其中,共同打造更好PHP生态,Swoole生态的开发者。

如果你乐于此,却又不知如何开始,可以试试下面这些事情:

联系

如果你在使用中遇到问题,请联系: bboyjanhuang@gmail.com. 微博: 编码侠

License MIT