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

ActiveCakephp-plugin[Framework](/categories/framework)

jameswatts/cake-dependency
==========================

CakePHP plugin providing dependency injection and service registry/locator

152592PHP

Since Dec 28Pushed 2y ago4 watchersCompare

[ Source](https://github.com/jameswatts/cake-dependency)[ Packagist](https://packagist.org/packages/jameswatts/cake-dependency)[ RSS](/packages/jameswatts-cake-dependency/feed)WikiDiscussions beta Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Cake Dependency
===============

[](#cake-dependency)

The **Dependency** plugin for *CakePHP* provides a dependency injection container and service registry/locator. The plugin includes the [Di](Utility/Di.php) utility class, which is used to register and resolve dependencies.

To inject dependencies you only need a class which is accessible to the framework. This can be from *CakePHP* itself, from a plugin, or even a vendor library.

To get working quickly check out the [Quick Start](Docs/Tutorials/Quick-Start.md) tutorial from the [documentation](Docs/Home.md).

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

[](#requirements)

- CakePHP 2+
- PHP 5.3+

Documentation
-------------

[](#documentation)

Full documentation is included with the plugin, and can be found in the [Docs](Docs/Home.md) directory of this repository.

Support
-------

[](#support)

For support, bugs and feature requests, please use the [issues](https://github.com/jameswatts/cake-dependency/issues) section of this repository.

Contributing
------------

[](#contributing)

If you'd like to contribute new features, enhancements or bug fixes to the code base just follow these steps:

- Create a [GitHub](https://github.com/signup/free) account, if you don't own one already
- Then, [fork](https://help.github.com/articles/fork-a-repo) the [Cake Dependency](https://github.com/jameswatts/cake-dependency) repository to your account
- Create a new [branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository) from the *develop* branch in your forked repository
- Modify the existing code, or add new code to your branch, making sure you follow the [CakePHP Coding Standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html)
- Modify or add [unit tests](http://book.cakephp.org/2.0/en/development/testing.html) which confirm the correct functionality of your code (requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) 3.5+)
- Consider using the [CakePHP Code Sniffer](https://github.com/cakephp/cakephp-codesniffer) to check the quality of your code
- When ready, make a [pull request](http://help.github.com/send-pull-requests/) to the main repository

There may be some discussion regarding your contribution to the repository before any code is merged in, so be prepared to provide feedback on your contribution if required.

A list of contributors to the **Cake Dependency** plugin can be found [here](https://github.com/jameswatts/cake-dependency/contributors).

Licence
-------

[](#licence)

Copyright 2013 James Watts (CakeDC). All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d13e13867abbe5c99c3fa0d4ab86472d15bd049212a9737a26487ef320347599?d=identicon)[jameswatts](/maintainers/jameswatts)

---

Top Contributors

[![jameswatts](https://avatars.githubusercontent.com/u/403296?v=4)](https://github.com/jameswatts "jameswatts (13 commits)")[![wnasich](https://avatars.githubusercontent.com/u/104184?v=4)](https://github.com/wnasich "wnasich (2 commits)")[![ChrisB85](https://avatars.githubusercontent.com/u/792899?v=4)](https://github.com/ChrisB85 "ChrisB85 (1 commits)")

### Embed Badge

![Health badge](/badges/jameswatts-cake-dependency/health.svg)

```
[![Health](https://phpackages.com/badges/jameswatts-cake-dependency/health.svg)](https://phpackages.com/packages/jameswatts-cake-dependency)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M257](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M593](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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