PHPackages                             jeremyworboys/containeraware - 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. jeremyworboys/containeraware

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

jeremyworboys/containeraware
============================

Adds ContainerAware and method injection functionality to Laravel 4

0.2.0(11y ago)15.3kMITPHPPHP &gt;=5.4.0

Since Jan 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jeremyworboys/containeraware)[ Packagist](https://packagist.org/packages/jeremyworboys/containeraware)[ Docs](http://github.com/jeremyworboys/containeraware)[ RSS](/packages/jeremyworboys-containeraware/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel Container Aware
=======================

[](#laravel-container-aware)

[![Build Status](https://camo.githubusercontent.com/1b8f3a026f5e126537f1481563b97ef87645c7b60264c225c5c7bd6c9403ad16/68747470733a2f2f7472617669732d63692e6f72672f6a6572656d79776f72626f79732f636f6e7461696e657261776172652e737667)](https://travis-ci.org/jeremyworboys/containeraware)[![Total Downloads](https://camo.githubusercontent.com/3fcc59099285dfd142a4812ab12e8b2d7d1b6d249db112fe53aee78b8c68798b/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d79776f72626f79732f636f6e7461696e657261776172652f646f776e6c6f6164732e737667)](https://packagist.org/packages/jeremyworboys/containeraware)[![Latest Stable Version](https://camo.githubusercontent.com/baa0c3a1ce24d1a642354b30b876d9408673c76964286931b0b3060c4e9acf2b/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d79776f72626f79732f636f6e7461696e657261776172652f762f737461626c652e737667)](https://packagist.org/packages/jeremyworboys/containeraware)[![Latest Unstable Version](https://camo.githubusercontent.com/4c57ab88c912d9183ca026ccb6111f3e446eea6fe974f81ed0f999da05d1cffa/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d79776f72626f79732f636f6e7461696e657261776172652f762f756e737461626c652e737667)](https://packagist.org/packages/jeremyworboys/containeraware)[![License](https://camo.githubusercontent.com/c59ac56857b7959102a6cd1eed2af4ed52bf0f7b6d793b9bc6830dead80a3550/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d79776f72626f79732f636f6e7461696e657261776172652f6c6963656e73652e737667)](https://packagist.org/packages/jeremyworboys/containeraware)

Introduction
------------

[](#introduction)

ContainerAware adds a container aware interface, trait and base controller. The service provider will automatically inject an `Illuminate\Container\Container` instance to anything with `JeremyWorboys\ContainerAware\ContainerAware` interface.

The `JeremyWorboys\ContainerAware\ContainerAwareController` also comes with some helper methods for retrieving services from the container and adds method injection into your Laravel 4 controller actions (exactly the same as Laravel 5).

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

[](#installation)

Require this package with composer using the following command:

```
composer require jeremyworboys/containeraware

```

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

```
'JeremyWorboys\ContainerAware\ContainerAwareServiceProvider',

```

### License

[](#license)

ContainerAware is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

2

Last Release

4121d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/943c23d10dda311f0f7a6c052c5ac1fc5097a20141ae647cdc23ca6b9746124e?d=identicon)[jeremyworboys](/maintainers/jeremyworboys)

---

Top Contributors

[![jeremyworboys](https://avatars.githubusercontent.com/u/988173?v=4)](https://github.com/jeremyworboys "jeremyworboys (9 commits)")

---

Tags

containerlaraveldependencyinjectioncontroller

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeremyworboys-containeraware/health.svg)

```
[![Health](https://phpackages.com/badges/jeremyworboys-containeraware/health.svg)](https://phpackages.com/packages/jeremyworboys-containeraware)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
