承接 sherv/wp-plugin-foundation 相关项目开发

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

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

sherv/wp-plugin-foundation

最新稳定版本:v1.0.0

Composer 安装命令:

composer require sherv/wp-plugin-foundation

包简介

A structured foundation for building maintainable WordPress plugins using modern PHP practices, service providers, a DI container, and lifecycle management.

README 文档

README

A foundation package for building structured, maintainable WordPress plugins using modern PHP practices.

License: MIT PHP Version

Requirements

  • PHP 8.2+
  • Composer
  • WordPress

Installation

composer require sherv/wp-plugin-foundation

Quick Start

use Sherv\Foundation\Plugin;

$plugin = Plugin::new( __FILE__ )
    ->with_plugin_properties()
    ->with_providers()
    ->build();

register_activation_hook( __FILE__, [ $plugin, 'on_plugin_activation' ] );
register_deactivation_hook( __FILE__, [ $plugin, 'on_plugin_deactivation' ] );

add_action( 'plugins_loaded', [ $plugin, 'boot' ] );

Documentation

  1. Introduction: Overview, features, and quick start.
  2. Getting Started: Step-by-step setup for a new plugin.
  3. Architecture: Components overview and UML diagram.
  4. Plugin Builder: Builder API, paths, and plugin properties.
  5. Service Providers: Creating, registering, and booting providers.
  6. Plugin Lifecycle: Activation, deactivation, and boot process.
  7. Container: Accessing the DI container and resolving services.
  8. Requirements Validation: Pre-boot environment checks.
  9. Exceptions: Error handling reference.

Development

git clone https://github.com/shervElmi/wp-plugin-foundation.git
cd wp-plugin-foundation
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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固