2017 © Pedro Peláez
 

library phinject

PHP Dependency Injection Container

image

aztech/phinject

PHP Dependency Injection Container

  • Friday, December 26, 2014
  • by thibaud-evaneos
  • Repository
  • 3 Watchers
  • 0 Stars
  • 268 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 9 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

Phinject

Build Status Scrutinizer Code Quality Code Coverage HHVM Support, (*1)

License Latest Stable Version, (*2)

Phinject is a simple dependency injection container, with extensible activation & injection strategies., (*3)

Setup

Composer is the only supported way of installing Phinject. From the root of your project, run the following command:, (*4)

composer require aztech/phinject

Features

  • Compatible with the container-interop specification
  • Compatible with delegate containers.
  • YAML, JSON or PHP based configuration.
  • Lazy-loading dependencies.
  • Remote proxies (undocumented).
  • Aliases (undocumented).
  • Extensible configuration syntax (undocumented).

Usage

The documentation is available here., (*5)

We have a getting started guide, followed by more comprehensive documentation (although not yet exhaustive, but that will come):, (*6)

Note All the documentation examples are written using a YAML based configuration, however, you can also use JSON or PHP configuration files. (TODO: Document usage of PHP & JSON config file), (*7)

Credits

This library is originally a fork on oliviermadre/dic-it, available here., (*8)

Most of the core features have however been refactored or rewritten, enough that I felt it was time to re-brand this package, in order to both prevent confusion with the original package, and because I did not like the name., (*9)

The Versions