承接 pixelplugin/wp-container-api 相关项目开发

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

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

pixelplugin/wp-container-api

最新稳定版本:v2.0.2

Composer 安装命令:

composer require pixelplugin/wp-container-api

包简介

WordPress Container API

README 文档

README

pixelplugin/wp-container-api is a composer package that provides global functions for working with a global dependency container in WordPress.

Installation

composer require pixelplugin/wp-container-api

https://packagist.org/packages/pixelplugin/wp-container-api

Usage

You need this package and some WordPress plugin that provides a global PSR-compatible container instance in $wp_container variable, for example pixelplugin/wp-container. Then you can use the following functions to work with the container from your code.

Functions

wp_container_get

wp_container_get(string $id): mixed is used to get a value from the global container instance.

$value = wp_container_get(ClassName::class);

wp_container_has

wp_container_has(string $id): bool checks if a value exists in the global container instance.

if (wp_container_has(ClassName::class)) {
    // ClassName exists in the container.
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固