groupone/wap-client

WordPress AI Platform (WAP) client library — drop-in Composer package for integrating AI chat into any WordPress plugin.

Maintainers

Package info

github.com/One-com/wap-client

Type:wordpress-plugin

pkg:composer/groupone/wap-client

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.99 2026-06-25 11:39 UTC

This package is auto-updated.

Last update: 2026-06-30 11:43:49 UTC


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