PHPackages                             rochamarcelo/cake-pimple-di - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rochamarcelo/cake-pimple-di

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

rochamarcelo/cake-pimple-di
===========================

A cakephp plugin for dependency injection based on Pimple library

v4.0.0(4y ago)12176.8k↓28.4%3MITPHPPHP &gt;=5.4.16

Since Aug 28Pushed 4y ago3 watchersCompare

[ Source](https://github.com/rochamarcelo/cake-pimple-di)[ Packagist](https://packagist.org/packages/rochamarcelo/cake-pimple-di)[ Docs](https://github.com/rochamarcelo/cake-pimple-di)[ RSS](/packages/rochamarcelo-cake-pimple-di/feed)WikiDiscussions 4.next Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

CakePimpleDi - Cake 3 Plugin
----------------------------

[](#cakepimpledi---cake-3-plugin)

A cakephp plugin for dependency injection based on [Pimple 3](http://pimple.sensiolabs.org)

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

[](#requirements)

- CakePHP 3.X
- [Pimple 3](http://pimple.sensiolabs.org)

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

[](#installation)

---

To install this plugin you'll only have to add the plugin to your required section of composer.json then load in your bootstrap file.

```
composer require rochamarcelo/cake-pimple-di:dev-master

```

Bootstrap
=========

[](#bootstrap)

---

Load the plugin as any other plugin:

```
Plugin::load('RochaMarcelo/CakePimpleDi', ['bootstrap' => true, 'routes' => false]);
```

The bootstrap file must be loaded, to set up all configurations needed

Register dependencies
---------------------

[](#register-dependencies)

In your configuration file you can define all the services:

```
