定制 wppunk/wpautoload 二次开发

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

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

wppunk/wpautoload

Composer 安装命令:

composer require wppunk/wpautoload

包简介

Autoload your classes, interfaces and traits in WordPress

README 文档

README

Coverage Status CI/CD

WordPress Autoload

Autoload for your classes, interfaces and traits by WordPress Coding Standard.

How use?

composer require wppunk/wpautoload

Then add to the composer.json:

{
	 ...
	"extra": {
		"wp-autoload": {
			"\\Name\\Space\\": "src"
		}
	},
	...
}

Where key it is namespace and value it is the folder name.

Examples:

namespace My_Plugin

path src inside the plugin my-plugin.

Names for class, interface, trait:

wppunk\My_Plugin\Core\Awesome_Feature
wppunk\My_Plugin\Admin\Interface_Awesome_Feature
wppunk\My_Plugin\Front\Trait_Awesome_Feature

Paths:

.../wp-content/plugins/my-plugin/src/core/class-awesome-feature.php
.../wp-content/plugins/my-plugin/src/admin/interface-awesome-feature.php
.../wp-content/plugins/my-plugin/src/front/trait-awesome-feature.php

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-10-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固