定制 antoinedly/container 二次开发

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

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

antoinedly/container

最新稳定版本:v1.0.1

Composer 安装命令:

composer require antoinedly/container

包简介

A simple Container

README 文档

README

This simple container ...

Usage

<?php

use AntoineDly\Container\Container;

$container = new Container();
$container->set('SomeClassOrInterface', 'SomeConcreteClass');
$container->get('SomeClassOrInterface'); //will return 'SomeConcreteClass' being resolved

Requirements

  • AntoineDly\Container ^1.0 works with PHP 8.2 or above.

Author

Antoine Delaunay - antoine.delaunay333@gmail.com - Twitter

License

AntoineDly\Container is licensed under the MIT License - see the LICENSE file for details

Acknowledgements

This library is heavily inspired by PHP-DI and Gio's Container

Contributing

If you want to contribute, make sure to run those 3 steps before submitting a PR :

  • Run static tests :
tools/phpstan/vendor/bin/phpstan analyse src tests --level=9
  • Run fixer :
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src
  • Run tests :
vendor/bin/phpunit tests

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-19