PHPackages                             psx/dependency - 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. psx/dependency

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

psx/dependency
==============

Simple and fast DI container

v2.0.2(4y ago)147.5k2Apache-2.0PHPPHP &gt;=8.0CI failing

Since Feb 22Pushed 4y ago2 watchersCompare

[ Source](https://github.com/apioo/psx-dependency)[ Packagist](https://packagist.org/packages/psx/dependency)[ Docs](https://phpsx.org)[ Fund](https://www.paypal.me/fusioapi)[ GitHub Sponsors](https://github.com/chriskapp)[ RSS](/packages/psx-dependency/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (13)Used By (0)

Dependency
==========

[](#dependency)

About
-----

[](#about)

A simple and fast PSR-11 compatible DI container with features to autowire, tag and inject services. Instead of YAML or config files services are simply defined at a class by adding i.e. a `getMyService` method.

Usage
-----

[](#usage)

### Container

[](#container)

It is possible to extend the `Container` class. All `getXXX` methods are service definitions which can be accessed through the `get` method.

```
