antidot-fw/container

PSR-11 container implementation made for Antidot Framework

Maintainers

👁 kpicaza

Package info

github.com/antidot-framework/container

Homepage

pkg:composer/antidot-fw/container

Fund package maintenance!

kpicaza

Statistics

Installs: 2 692

Dependents: 2

Suggesters: 0

Stars: 3

Open Issues: 5

2.0.1 2024-05-22 18:53 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT f7146d96b4d0287fab030c228433fab5754db4c5

containerantidot-fw


README

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

Dependency injection library built for Antidot Framework respecting PSR-11 standard

Can be used together with Antidot Framework or as a standalone piece for your application or customized framework

Install

Via Composer

$ composer require antidot-fw/container:dev-master

Simple Usage

<?php

declare(strict_types=1);

use Antidot\Container\Builder;

$container = Builder::build([
 'config' => [],
 'parameters' => [],
 'services' => [
 'some.service' => Some::class,
 ],
], true);
if ($container->has('some.service')) {
 $service = $container->get('some.service');
}

Change log

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

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email kpicaza@example.com instead of using the issue tracker.

Credits

License

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