[WordPress] 外掛分享: Myrk Feature Flags

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

外掛標籤

開發者團隊

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

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

原文外掛簡介

WordPress feature flags and feature toggles built for development teams shipping on complex sites. No external feature flag service, no Redis, no third-party account — all state lives in your WordPress database.
Define flags in code. Control state from the admin.
Register feature flags in your plugin or theme — version controlled and peer reviewable. Enable, disable, and roll out per environment without code changes or redeploys.
Designed for teams practicing trunk-based development and continuous delivery — merge to main confidently and control what users see from the database.
Coming from a SaaS feature flag service?
Myrk works differently: your codebase is the source of truth. Flags are declared with Myrk::register() in PHP and committed to your repo — they appear in the admin automatically. The admin controls state only; it does not create flags. This keeps your flag inventory version controlled and peer reviewed, the same as everything else in your codebase.
Key features

Code-registered flags — Myrk::register() in PHP, reviewed in Git
Per-environment state — uses wp_get_environment_type() automatically
Progressive rollout — deterministic percentage rollout, no cookies required
Targeting rules — role, capability, user ID, email domain
Circuit breaker — Myrk::attempt() wraps risky code with automatic fallback
Stale flag detection — visual badge for feature toggles inactive 90+ days
REST API — full CRUD, powers admin UI and CI/CD pipeline automation
WP-CLI — complete feature flag management 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.

延伸相關外掛

文章
Filter
Mastodon