wp-cli/wp-config-transformer
WP-CLI utility for safely reading and modifying WordPress wp-config.php values. Add, update, or remove constants, variables, and settings without manual editing, enabling reliable, scriptable configuration changes in automation and deployment workflows.
wp-config.php updates (e.g., database credentials, API keys, or environment-specific settings).wp-config.php during build/test/deploy phases (e.g., GitHub Actions, Jenkins, or Kubernetes rollouts).AUTH_KEY or database passwords).wp-config.php with production/staging settings (e.g., via .env files or config templates).wp-config.php per tenant).wp-config.php; this package focuses on key-value pairs)..env, functions.php; consider vlucas/phpdotenv or custom scripts).wp-config.php is irrelevant (e.g., REST API-only).For Executives: "This package lets us automate WordPress configuration updates—like flipping a switch for database credentials or API keys—without manual errors or redeploys. It’s a 10-minute fix for a problem that currently costs us [X] hours/year in support and downtime. Used by top WordPress agencies, it’s MIT-licensed and integrates seamlessly with our CI/CD pipelines, reducing deployment risk while enabling faster, more secure releases."
For Engineering: *"wp-config-transformer solves our pain point of [specific issue, e.g., ‘hardcoded DB passwords in Git’ or ‘inconsistent local/staging configs’]. It’s a lightweight WP-CLI package that:
wp-config.php.dist).config.yml → wp-config.php).wp config transform --source=env.prod.yml --target=wp-config.php.For Security/DevOps: *"This replaces insecure practices like:
sed/awk hacks for config updates.
It’s auditable (MIT license, active WP-CLI maintainers) and defensible—we can now rotate credentials via CI/CD without touching production files. Example workflow:wp config transform.wp-config.php."*How can I help you explore Laravel packages today?