定制 kusabi/container 二次开发

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

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

kusabi/container

Composer 安装命令:

composer require kusabi/container

包简介

A PSR-11 conforming container library for PHP

README 文档

README

Tests codecov Licence Badge Release Badge Tag Badge Issues Badge Code Size

An implementation of a PSR-11 conforming Container library

Compatibility and dependencies

This library is compatible with PHP version 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 and 8.1.

This library has no dependencies.

Installation

Installation is simple using composer.

composer require kusabi/container

Or simply add it to your composer.json file

{
    "require": {
        "kusabi/container": "^1.0"
    }
}

Using the Container class

The Uri class is a very basic wrapper around a Uri string.

use Kusabi\Container\Container;

// Create a new instance
$container = new Container();

// Set and get items
$container->set('integer', 1);
$container->get('integer'); // 1

// Set values by reference
$array = [1, 2, 3];
$container->setReference('array', $array);
$array[] = 4;
$container->get('array'); // [1, 2, 3, 4]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2020-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固