groupone/wap-client
Composer 安装命令:
composer require groupone/wap-client
包简介
WordPress AI Platform (WAP) client library — drop-in Composer package for integrating AI chat into any WordPress plugin.
关键字:
README 文档
README
WordPress AI Platform (WAP) client library — a drop-in Composer package for integrating an AI chat assistant into any WordPress plugin via a single static method call.
The library is the client ("doorway") side only: it renders the chat widget in WordPress admin, provisions a WordPress Application Password, and exchanges credentials with your WAP backend for a session token. The AI itself runs on a separate backend service that you host.
Requirements
- PHP >= 7.4
- WordPress >= 6.0
- HTTPS (required for WordPress Application Passwords)
- A running WAP backend (the
server_urlyou point to)
Installation
composer require groupone/wap-client
Usage
Call from your plugin's admin_menu action:
use WapClient; // global facade defined by the package add_action('admin_menu', function () { WapClient::register_chat_page([ 'menu_slug' => 'my-plugin-wap-chat', 'parent_slug' => 'my-plugin-settings', 'page_title' => 'AI Assistant', 'product' => 'my-product-slug', 'server_url' => 'https://your-wap-backend.example.com', ]); });
The library handles capability gating, App Password provisioning, session management, and widget rendering automatically.
License
GPL-2.0-or-later
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-25