devop-core/container

Dependency injection service

1.0.5 2019-05-15 11:17 UTC

This package is auto-updated.

Last update: 2024-10-09 10:56:22 UTC


README

Description

This library is just proof of concept. > We do NOT recommended the use of production environment.

Provide dependency injection

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Package is available on Packagist, you can install it using Composer.

composer require devop-core/container

Usage

<?php
use DevOp\Core\Container;

include_once './vendor/autoload.php';

$class = new \stdClass();
$container = new Container();
$container->add('class', $class);

var_dump($container->get('class'));

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.