carmelosantana/coqui-awesome-wp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

carmelosantana/coqui-awesome-wp

Composer 安装命令:

composer require carmelosantana/coqui-awesome-wp

包简介

Comprehensive WordPress management toolkit for Coqui — multi-site REST API + WP-CLI integration for content, users, plugins, themes, media, menus, settings, health monitoring, custom code scaffolding, and more

README 文档

README

A comprehensive WordPress management toolkit for Coqui Bot that provides full REST API coverage, multi-site connection management, and plugin/theme scaffolding.

Features

  • 15 specialized tools covering the full WordPress REST API surface
  • Multi-site management — add, switch between, and manage multiple WordPress sites
  • Plugin & theme scaffolding — generate boilerplate with proper headers and hooks
  • Raw REST API access — escape hatch for custom post types, WooCommerce, and third-party plugins
  • Secure credential handling — application passwords stored in .env with hot-reload
  • WP-CLI integration — optional power-user features via coqui-toolkit-wp-cli

Requirements

  • PHP 8.4+
  • Coqui Bot with carmelosantana/php-agents ^0.7
  • WordPress 5.6+ (for Application Passwords support)

Installation

Install via Composer in your Coqui workspace:

composer require carmelosantana/coqui-awesome-wp

The toolkit is auto-discovered by Coqui on next boot — no manual registration needed.

Authentication

This toolkit uses WordPress Application Passwords for authentication:

  1. Log into your WordPress admin
  2. Go to Users → Profile
  3. Scroll to Application Passwords
  4. Enter a name (e.g., "Coqui Bot") and click Add New Application Password
  5. Copy the generated password

Then add the site to Coqui:

awp_sites(action: "add", alias: "mysite", url: "https://example.com", username: "admin", app_password: "xxxx xxxx xxxx xxxx xxxx xxxx")

Tools Reference

Tool Description Key Actions
awp_sites Site connection management add, list, get, remove, test, set_default
awp_content Posts & pages CRUD list, create, update, delete, revisions
awp_media Media library management list, upload, get, update, delete
awp_users User management list, create, get, update, delete, me
awp_comments Comment management list, create, get, update, delete
awp_taxonomy Categories, tags, custom taxonomies list, create, get, update, delete
awp_plugins Plugin management list, get, install, activate, deactivate, delete
awp_themes Theme management list, get, activate
awp_settings Site settings get, update
awp_menus Navigation menus list_menus, create_item, update_item, delete_item
awp_blocks Blocks, widgets, sidebars list_block_types, create_block, list_widgets
awp_search Cross-content search Full-text search across posts, pages, terms
awp_health Site health diagnostics status, tests, directory_sizes
awp_rest Raw REST API requests Any HTTP method to any endpoint
awp_scaffold Plugin/theme scaffolding generate, deploy

Multi-Site Usage

Add multiple sites and target any of them:

awp_sites(action: "add", alias: "production", url: "https://example.com", ...)
awp_sites(action: "add", alias: "staging", url: "https://staging.example.com", ...)

# Target production
awp_content(action: "list", site: "production")

# Target staging
awp_content(action: "list", site: "staging")

# Change default
awp_sites(action: "set_default", alias: "staging")

Scaffolding

Generate WordPress plugin or theme boilerplate:

awp_scaffold(action: "generate", type: "plugin", name: "My Custom Plugin", description: "Does amazing things")
awp_scaffold(action: "generate", type: "theme", name: "My Custom Theme", author: "Carmelo")

Generated files include proper headers, activation hooks, uninstall scripts, and standard directory structure.

Gated Operations

The following destructive operations require user confirmation (unless --auto-approve is set):

  • awp_plugins: install, activate, deactivate, delete, update
  • awp_themes: activate
  • awp_users: create, delete
  • awp_settings: update
  • awp_comments: delete
  • awp_rest: post, put, patch, delete
  • awp_scaffold: deploy
  • awp_sites: remove

Credential Storage

Site credentials are managed automatically:

  • Site metadata (URL, alias, SSH config) stored in workspace/data/wp-sites.json
  • Application passwords stored as AWP_{ALIAS}_APP_PASSWORD in workspace .env
  • Hot-reload via putenv() — no restart needed after adding credentials

Optional default credentials in composer.json:

  • AWP_DEFAULT_URL — default site URL
  • AWP_DEFAULT_USERNAME — default username
  • AWP_DEFAULT_APP_PASSWORD — default application password

WP-CLI Integration

When coquibot/coqui-toolkit-wp-cli is installed, additional server-level operations become available:

  • Database export/import
  • Core updates and checksum verification
  • wp-config.php management
  • Search-replace across the database
  • Cache and cron management
  • Scaffold deployment to remote servers

WP-CLI is a suggest dependency — the toolkit works fully without it.

License

MIT

carmelosantana/coqui-awesome-wp 适用场景与选型建议

carmelosantana/coqui-awesome-wp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「toolkit」 「wordpress」 「wp-cli」 「wp-rest-api」 「site-management」 「php-agents」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 carmelosantana/coqui-awesome-wp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 carmelosantana/coqui-awesome-wp 我们能提供哪些服务?
定制开发 / 二次开发

基于 carmelosantana/coqui-awesome-wp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-08