定制 apermo/apermo-notify 二次开发

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

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

apermo/apermo-notify

Composer 安装命令:

composer require apermo/apermo-notify

包简介

A WordPress apermo-notify plugin.

README 文档

README

PHP CI License: GPL v2+

GitHub template repository for bootstrapping WordPress plugins and themes. Ships both plugin and theme scaffolding; a setup.sh script lets developers choose their mode and configures the project accordingly.

Requirements

  • PHP 8.1+
  • WordPress 7.0+ (the manage-subscriptions block uses the PHP-only block.json render manifest that's reliable from 7.0 onwards; wp_admin_notice() from 6.4 is also relied on)
  • Composer
  • Node.js 20+ and npm (activates husky pre-commit hook, runs Playwright)
  • DDEV (for local development)

Installation

  1. Create a new repository from this template
  2. Clone your new repository
  3. Run the setup script:
bash setup.sh

The script prompts for:

  • Slug (kebab-case, e.g. my-plugin)
  • Namespace (e.g. Apermo\MyPlugin)
  • Composer package name
  • Mode (plugin or theme)

It replaces all placeholders, removes irrelevant mode files, configures DDEV, and optionally sets up GitHub labels and branch protection.

Development

composer install
npm install              # Activates husky hook + installs Playwright
composer cs              # Run PHPCS
composer cs:fix          # Fix PHPCS violations
composer analyse         # Run PHPStan
composer test            # Run all tests
composer test:unit       # Run unit tests only
composer test:integration # Run integration tests only
npm run test:e2e         # Run Playwright E2E tests (incl. WCAG 2.1 AA a11y checks)

Local WordPress Environment

ddev start && ddev orchestrate

Uses ddev-orchestrate to download WordPress, create wp-config.php, install, and activate the plugin/theme.

Git Hooks

The pre-commit hook (PHPCS + PHPStan) is managed by husky and activates automatically after npm install. No manual configuration required.

Template Sync

To pull upstream template changes into a derived project:

git remote add template https://github.com/apermo/template-wordpress.git
git fetch template
git checkout -b chore/sync-template
git merge template/main --allow-unrelated-histories

License

GPL-2.0-or-later

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-05-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固