2017 © Pedro Peláez
 

library dimaria

A super fast Dependency Injection Container for PHP 7+

image

dangerousdan/dimaria

A super fast Dependency Injection Container for PHP 7+

  • Sunday, January 14, 2018
  • by dangerousdan
  • Repository
  • 1 Watchers
  • 4 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DiMaria Dependency Injector

Build Status Scrutinizer Code Quality Code Coverage Build Status Code Climate SensioLabsInsight, (*1)

DiMaria is a Dependency Injection Container for PHP 7+ with no dependencies. It's written to be extremely fast and lightweight., (*2)

Installation

Fetch DiMaria with composer via packagist. Add it with, (*3)

composer require dangerousdan/dimaria

Usage

DiMaria should work out of the box. Just call get() with the class name you wish to create., (*4)

$di = new DD\DiMaria;
$object = $di->get('ClassName');

DiMaria implements the PSR7 Container interface., (*5)

DiMaria can: * Automatically fetch type-hinted dependencies in classes * Set and override parameters and create aliases * Set preferences for interfaces or classes * Configure classes to return shared or new instances * Support variadic parameters * Configure Setter injection, (*6)

For more info, see the docs, (*7)

DiMaria, (*8)

The Versions

14/01 2018

dev-master

9999999-dev https://github.com/dangerousdan/dimaria

A super fast Dependency Injection Container for PHP 7+

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Dangerous Dan

dependency injection dic di dependency injection container