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
.envwith 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:
- Log into your WordPress admin
- Go to Users → Profile
- Scroll to Application Passwords
- Enter a name (e.g., "Coqui Bot") and click Add New Application Password
- 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, updateawp_themes: activateawp_users: create, deleteawp_settings: updateawp_comments: deleteawp_rest: post, put, patch, deleteawp_scaffold: deployawp_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_PASSWORDin workspace.env - Hot-reload via
putenv()— no restart needed after adding credentials
Optional default credentials in composer.json:
AWP_DEFAULT_URL— default site URLAWP_DEFAULT_USERNAME— default usernameAWP_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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 carmelosantana/coqui-awesome-wp 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Use WP-CLI to clear the OPcache for a site via HTTP.
Symfony2 Bundle that adds basic user account entity and city/state/country setup as well
Common helpers and classes for ICanBoogie
Check for common mistakes and enforce best practices before take off.
Enable use of agile toolkit framework in wordpress
Extra preflight-command checkers for professional developers.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-08