PHPackages                             webdevcave/yadic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. webdevcave/yadic

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

webdevcave/yadic
================

Yet another dependency injection container for PHP

v1.2(1y ago)012MITPHPPHP &gt;=8.1

Since Jun 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/WebdevCave/yadic-php)[ Packagist](https://packagist.org/packages/webdevcave/yadic)[ RSS](/packages/webdevcave-yadic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Yet another dependency injection container for PHP
==================================================

[](#yet-another-dependency-injection-container-for-php)

[![StyleCi](https://camo.githubusercontent.com/c18507cc3082d1f4a9ee6de9be7d2ec80bfa66264d4e71b2c2cd00d40ecc06e0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3831363534323233382f736869656c64)](https://camo.githubusercontent.com/c18507cc3082d1f4a9ee6de9be7d2ec80bfa66264d4e71b2c2cd00d40ecc06e0/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3831363534323233382f736869656c64)[![Latest Stable Version](https://camo.githubusercontent.com/3815f255a873d43b571f13d29e6b78da4d967adfedc9c2d9a1fc415f0c227f74/68747470733a2f2f706f7365722e707567782e6f72672f776562646576636176652f79616469632f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/webdevcave/yadic)[![Latest Unstable Version](https://camo.githubusercontent.com/0fcfa2dce25f85271ced3aadeaeffb52000c852d6145a299230af01bdb8b4ccb/68747470733a2f2f706f7365722e707567782e6f72672f776562646576636176652f79616469632f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/webdevcave/yadic)[![Total Downloads](https://camo.githubusercontent.com/201bf997443bd42e8c3e1b65c654e480b1256c4ee61c78a7bbeea9bef2465a29/68747470733a2f2f706f7365722e707567782e6f72672f776562646576636176652f79616469632f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/webdevcave/yadic)[![License](https://camo.githubusercontent.com/f8dfddc2533a526b8afe052320127c3d046eda1bce574f9f499d6a61de6dfeb3/68747470733a2f2f706f7365722e707567782e6f72672f776562646576636176652f79616469632f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/webdevcave/yadic)[![codecov](https://camo.githubusercontent.com/c661a8a24bff398cf54c78877e7b39875b88517fa384b74958397afe174e75f4/68747470733a2f2f636f6465636f762e696f2f6769746875622f576562646576436176652f79616469632d7068702f67726170682f62616467652e7376673f746f6b656e3d36474c45434a51473136)](https://codecov.io/github/WebdevCave/yadic-php)

This is a simple to use, yet powerful service container that provides a seamless way to automate dependency injection featuring auto-wiring and object hydration.

```
composer require webdevcave/yadic
```

Alternatively, you can clone the repository or download the source files directly and include them in your project.

Usage
-----

[](#usage)

### Autowiring

[](#autowiring)

```
