https://github.com/sensorario/dependency-injection
automatic dependency injection
https://github.com/sensorario/dependency-injection
dependency-injection injection php
Last synced: about 1 year ago
JSON representation
automatic dependency injection
- Host: GitHub
- URL: https://github.com/sensorario/dependency-injection
- Owner: sensorario
- License: mit
- Created: 2023-04-30T14:29:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T21:00:15.000Z (about 3 years ago)
- Last Synced: 2025-04-09T20:07:10.524Z (about 1 year ago)
- Topics: dependency-injection, injection, php
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Depencency-Injection
## Install
```
composer require sensorario/dependency-injection
```
## Usage
```php
use function Sensorario\DependencyInjection\injector;
$result = injector(ClassName::class, 'methodName');
echo $result;
```