2017 © Pedro Peláez

library slim-dic

Symfony DIC integration for the Slim Framework



Symfony DIC integration for the Slim Framework

  • Thursday, July 5, 2018
  • by chippyash
  • Repository
  • 1 Watchers
  • 1 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown



Quality Assurance

Coming soon!, (*1)


Provides Symfony Dependency Injection for a Slim Application, (*2)

Also provides a minimalist Controller pattern class for use in your applications., (*3)

For an example application that uses this library, please see Slim-DIC Example, (*4)


The Slim framework is great for lightweight sites but lacks the ease of creating testable, adaptable code that can be found when adopting a strict DI approach to development., (*5)

This small library supports the integration of the easy to use, yet powerful Symfony version of a DI container with the lightweight Slim Framework, giving you the ability to create great, maintainable and configurable web sites quickly., (*6)


Changing the library

  1. fork it
  2. write the test
  3. amend it
  4. do a pull request

Found a bug you can't figure out?, (*7)

  1. fork it
  2. write the test
  3. do a pull request

NB. Make sure you rebase to HEAD before your pull request, (*8)


The library is hosted at Github. It is available at Packagist.org, (*9)

See The (PHP) Matrix for more PHP packages from this author., (*10)


Install Composer, (*11)

For production

add, (*12)

    "chippyash/slim-dic": "~1.0"

to your composer.json "requires" section, (*13)

For development

Clone this repo, and then run Composer in local repo root to pull in dependencies, (*14)

    git clone git@github.com:chippyash/Slim-Dic.git Slimdic
    cd Slimdic
    composer install --dev

To run the tests:, (*15)

    cd Slimdic
    vendor/bin/phpunit -c test/phpunit.xml test/


This software library is released under the BSD 3 Clause license, (*16)

This software library is Copyright (c) 2014-2018, Ashley Kitson, UK, (*17)


V1.0.0 Initial release, (*18)

V1.0.1 Refactor getting controller name, (*19)

V2.0.0 Change of license from GPL V3 to BSD 3 Clause, php version dependency update, (*20)

The Versions