[WordPress] 外掛分享: Myrk Feature Flags

首頁 › 外掛目錄 › Myrk Feature Flags
WordPress 外掛 Myrk Feature Flags 的封面圖片
全新外掛
安裝啟用
—
尚無評分
11 天前
最後更新
—
問題解決
WordPress 7.0+ PHP 8.1+ v1.0.1 上架:2026-09-02

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Myrk Feature Flags」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Test new features safely and roll out changes to a percentage of users without touching external services or setting up extra infrastructure. Everything runs inside WordPress. No third-party accounts, no Redis, no additional servers required.
Define flags in code. Control state from the admin.
Register feature flags directly in your plugin or theme so they are version controlled and reviewable in code. Enable, disable, or gradually deploy to users from the WordPress admin without pushing new code. Progressive rollout, user targeting, and gradual deployment are all built in.
Works well for teams using trunk-based development and continuous delivery. Merge to main and control what users see from the database rather than through separate deploys.
Coming from an external feature flag service?
Myrk takes a different approach. Your codebase is the source of truth. Flags are declared with Myrk::register() in PHP and committed to your repo, and they show up in the admin automatically. The admin controls state only and does not create flags. Your flag inventory stays version controlled and peer reviewed like everything else in your codebase.
Key features

Code-registered flags — declare with Myrk::register() in PHP, reviewed in Git
Per-environment state — reads wp_get_environment_type() automatically
Progressive rollout — deterministic percentage rollout, no cookies needed
User targeting — by role, capability, user ID, or email domain
A/B testing — deterministic hashing so the same user always sees the same variant
Circuit breaker — Myrk::attempt() wraps risky code with automatic fallback
Stale flag detection — visual badge for feature toggles inactive for 90 or more days
REST API — full CRUD that powers the admin UI and CI/CD pipeline automation
WP-CLI — manage feature flags from the command line
No external dependencies — no Redis, no Node, no third-party service

Source Code
The compiled JavaScript in build/ is generated from source files in assets/js/ using @wordpress/scripts (webpack). Both the source and compiled files are included in the plugin zip. To rebuild the compiled assets, install Node.js dependencies with pnpm install and run pnpm build.
Development

GitHub Repository
Report a Bug or Suggest a Feature
Releases & Changelog

文章
Filter
Mastodon