PHPackages                             rgsone/slim-lazy-controller-connector - 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. rgsone/slim-lazy-controller-connector

AbandonedArchivedLibrary[Framework](/categories/framework)

rgsone/slim-lazy-controller-connector
=====================================

Extension for Slim Framework who provides a simple way to connect and 'lazy load' controller and middleware with Slim route.

v2.2(11y ago)103154MITPHPPHP &gt;=5.4.0

Since Dec 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rgsone/slim-lazy-controller-connector)[ Packagist](https://packagist.org/packages/rgsone/slim-lazy-controller-connector)[ Docs](http://github.com/rgsone/slim-lazy-controller-connector)[ RSS](/packages/rgsone-slim-lazy-controller-connector/feed)WikiDiscussions master Synced yesterday

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

\[DEPRECATED\] &gt; Look at new Slim version

slim-lazy-controller-connector
==============================

[](#slim-lazy-controller-connector)

Slim `LazyControllerConnector` is an extension for Slim Framework who provides a simple way to connect and 'lazy load' controllers &amp; middlewares with Slim routes.

### Features

[](#features)

- Provides a lazy loading for controllers and middlewares
- The registered controllers are instantiated only once (singleton)
- Provides a simple way to bind a controller with multiple routes and middlewares

Install
-------

[](#install)

With Composer.

```
"require": {
	"slim/slim": "~2.4",
	"rgsone/slim-lazy-controller-connector": "dev-master"
}

```

Usage
-----

[](#usage)

`LazyControllerConnector` provides two ways to connect Slim routes with controllers. Provides also a simple way to call a method's controller.

### Single route way

[](#single-route-way)

Setup

```
