PHPackages                             downing/tupper - 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. [Framework](/categories/framework)
4. /
5. downing/tupper

AbandonedArchivedLibrary[Framework](/categories/framework)

downing/tupper
==============

A simple, no-nonsense IoC Container written in PHP for Dependency Injection

v1.0(6y ago)135[2 issues](https://github.com/lukeraymonddowning/Tupper/issues)[2 PRs](https://github.com/lukeraymonddowning/Tupper/pulls)MITPHP

Since Dec 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/lukeraymonddowning/Tupper)[ Packagist](https://packagist.org/packages/downing/tupper)[ RSS](/packages/downing-tupper/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Tupper: the Dependency Injection container for PHP
==================================================

[](#tupper-the-dependency-injection-container-for-php)

[![Build Status](https://camo.githubusercontent.com/5ae43128bd9f5fb7eed101bcc4adf472bffa63458d6a2d561a09f0a0d20c7373/68747470733a2f2f7472617669732d63692e6f72672f6c756b657261796d6f6e64646f776e696e672f5475707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lukeraymonddowning/Tupper)[![Coverage Status](https://camo.githubusercontent.com/7570a6af46eabe8d47e2fe276c280c2972956e438eadf673fa47b34c59338d2a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c756b657261796d6f6e64646f776e696e672f5475707065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/lukeraymonddowning/Tupper?branch=master)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![StyleCI](https://camo.githubusercontent.com/bfdd6d57eefe4fac2cad2af82922329125d2753ff439a036b27fc092883c5e2e/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3233303737303933352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/230770935/shield?branch=master)

A simple, no-nonsense declarative IoC Container written in PHP for Dependency Injection (DI).

Dependency Injection and Dependency Inversion are powerful concepts that improve code readability, maintainability and stability.

More often than not, you'll want a IoC container that allows you to manage these dependancies from one place. These containers are often convoluted and technically expensive, creating friction between you and your code. This library removes all of the fluff and leaves just the essentials, allowing you to quickly implement DI in your project.

Installation
============

[](#installation)

This package is available via composer:

`composer require downing/tupper`

Basic Usage
===========

[](#basic-usage)

To use the container, create an instance of it in your project:

```
