apermo/apermo-notify
Composer 安装命令:
composer require apermo/apermo-notify
包简介
A WordPress apermo-notify plugin.
README 文档
README
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-subscriptionsblock uses the PHP-onlyblock.jsonrender 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
- Create a new repository from this template
- Clone your new repository
- 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 (
pluginortheme)
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
统计信息
- 总下载量: 418
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-05-24