Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alireaza/dependency-injection
- Owner: alireaza
- License: mit
- Created: 2021-11-09T08:21:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T00:54:20.000Z (almost 3 years ago)
- Last Synced: 2024-05-21T05:03:40.146Z (8 months ago)
- Topics: composer, dependency-injection, php
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.