定制 antidot-fw/container 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

antidot-fw/container

最新稳定版本:2.0.1

Composer 安装命令:

composer require antidot-fw/container

包简介

PSR-11 container implementation made for Antidot Framework

README 文档

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.

统计信息

  • 总下载量: 2.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-15