PHPackages                             ibnusyuhada/slim-tegar - 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. ibnusyuhada/slim-tegar

ActiveLibrary[Framework](/categories/framework)

ibnusyuhada/slim-tegar
======================

Slim Tegar is a package that designed for integrating PHP-DI and Slim Framework version 3.x.x. This package is an Slim Bridge advanced of http://php-di.org/doc/frameworks/slim.html. You don't need to extends any class of PHP-DI or Slim just to make container configuration. Slim Tegar also providing the easy way to implement Closure and MVC routes.

v1.0.0(9y ago)1211[1 issues](https://github.com/ibnusyuhadap3/slim-tegar/issues)MITPHPPHP &gt;=5.5

Since Aug 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ibnusyuhadap3/slim-tegar)[ Packagist](https://packagist.org/packages/ibnusyuhada/slim-tegar)[ RSS](/packages/ibnusyuhada-slim-tegar/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/31103559af2143b18ecaafd2015995d18dd3fc943d46ad4b570829526edc1b07/68747470733a2f2f706f7365722e707567782e6f72672f69626e75737975686164612f736c696d2d74656761722f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/ibnusyuhada/slim-tegar) [![License](https://camo.githubusercontent.com/b2bc1bcbcfcf78de7dbda5b1d09334c205eea474a9afdcc32d6fcb46c789d724/68747470733a2f2f706f7365722e707567782e6f72672f69626e75737975686164612f736c696d2d74656761722f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/ibnusyuhada/slim-tegar)

Slim Tegar
==========

[](#slim-tegar)

Slim Tegar is a package that designed for integrating PHP-DI and Slim Framework version 3.x.x. This package is an [Slim Bridge](http://php-di.org/doc/frameworks/slim.html) advanced. You don't need to exteds just to make container configuration. Slim Tegar also providing the easy way to implement Closure and MVC routes.

Requirement
-----------

[](#requirement)

Slim Tegar requires PHP-DI and SlimFramework version 3.x.x.

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

[](#installation)

Install Slim Tegar can do via Composer:

```
composer require ibnusyuhada/slim-tegar

```

Usage
-----

[](#usage)

Basically, Slim Tegar is replacing original container of Slim ([Pimple](http://pimple.sensiolabs.org/)) with [PHP-DI](http://php-di.org/). You don't need to extend any class just for configuration dependencies. Some advance usage has been added to polish up original integration in .

### Basic Usage

[](#basic-usage)

Slim Tegar usage is simple and easy. Initially, create an example project, let say **slimtegar**. Then install Slim Tegar inside that. After that, create *index.php* with the following simple code:

```
