Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alireaza/dependency-injection

Dependency Injection Container
https://github.com/alireaza/dependency-injection

composer dependency-injection php

Last synced: about 2 months ago
JSON representation

Dependency Injection Container

Awesome Lists containing this project

README

        

# Dependency Injection Container

## Install

Via Composer
```bash
$ composer require alireaza/dependency-injection
```

## Usage

```php
use AliReaza\DependencyInjection\DependencyInjectionContainer;

$dic = new DependencyInjectionContainer();

$dic->useAutowiring(true);

$alireaza_birthday = $dic->resolve(DateTime::class, [
'$datetime' => '1992-10-27 10:15:00'
]);
```

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.