groupone/wap-client 问题修复 & 功能扩展

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

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

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_url you 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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-06-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固