Skip to content

fastdlabs/DI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DI

Dependency injection

Requirements

  • PHP >=7.4

Installation

composer require "fastd/container"

Usage

$container = new Container();
$container->add('container', $container);
$factory = new Factory($container);
$factory->bind(Factory::class);
try {
    $factory = $factory->make();
    $this->assertInstanceOf(Factory::class, $factory);
} catch (Exception $e) {

}

Testing

bin/phpunit

贡献

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

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

联系

如果你在使用中遇到问题,请联系: [email protected]. 微博: 编码侠

License MIT

Releases

No releases published

Packages

No packages published

Languages