PHPackages                             kbondurant/attribute-container - 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. kbondurant/attribute-container

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

kbondurant/attribute-container
==============================

An attribute based container for league/container

1.0.0(4y ago)217.7k↓37.8%[1 PRs](https://github.com/kbondurant/attribute-container/pulls)MITPHPPHP ^8.0 || ^8.1CI passing

Since Feb 25Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/kbondurant/attribute-container)[ Packagist](https://packagist.org/packages/kbondurant/attribute-container)[ RSS](/packages/kbondurant-attribute-container/feed)WikiDiscussions main Synced 1mo ago

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

Attribute Container
===================

[](#attribute-container)

An attribute based container for [league/container](https://container.thephpleague.com/).

Installation
------------

[](#installation)

Via Composer

```
composer require kbondurant/attribute-container
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 8.0
- PHP 8.1

Usage
-----

[](#usage)

This container allows you to bind an interface to its implementation using [PHP Attributes](https://www.php.net/manual/en/language.attributes.php)

### Add AttributeContainer as a delegate container to your league/container

[](#add-attributecontainer-as-a-delegate-container-to-your-leaguecontainer)

```
