承接 sherv/wp-di-container 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sherv/wp-di-container

最新稳定版本:v1.0.0

Composer 安装命令:

composer require sherv/wp-di-container

包简介

PSR-11 compliant dependency injection container for WordPress plugin development.

README 文档

README

A PSR-11 compliant dependency injection container for WordPress plugin development.

License: MIT PHP Version

Requirements

  • PHP 8.2+
  • Composer
  • WordPress (used within a WordPress plugin or theme)

Installation

composer require sherv/wp-di-container

Quick Start

use Sherv\Container\Container;

$container = new Container();

// Bind an interface to a concrete implementation.
$container->bind( Logger_Contract::class, File_Logger::class );

// Resolve. File_Logger and all its dependencies are built automatically.
$logger = $container->make( Logger_Contract::class );

Documentation

  1. Introduction: Overview, features, and quick start.
  2. Architecture: Components overview and UML diagram.
  3. Container: Binding, resolving, singletons, extensions, and factory.
  4. Exceptions: Error handling reference.

Development

To get started, clone the repository and install dependencies:

git clone https://github.com/shervElmi/wp-di-container.git
cd wp-di-container
composer install

Scripts

Command Description
composer test Run the test suite
composer test:coverage Run tests with code coverage
composer lint Run PHP CodeSniffer
composer format Auto-fix coding standards violations

Contributing

Contributions are welcome. Please open an issue or pull request on GitHub.

Security

To report a security vulnerability, please see SECURITY.md.

Changelog

See CHANGELOG.md for a history of notable changes.

License

© Sherv Elmi. Licensed under the MIT License. Distributed without any warranty. See the license for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固