PHP Classes

File: docs/README.md

Recommend this page to a friend!
  Packages of Adrian M   QuickWP   docs/README.md   Download  
File: docs/README.md
Role: Example script
Content type: text/markdown
Description: Example script
Class: QuickWP
Manage WordPress sites using the REST API
Author: By
Last change: docs: update README, docs index, and CHANGELOG for v3.0.1 and v3.1 features
docs: complete v3.0 documentation, CLI/Webhooks/MCP/AI Concierge guides, and CHANGELOG
Date: 12 hours ago
Size: 5,896 bytes
 

 

Contents

Class file image Download

QuickWP v3 Documentation

Complete documentation for the QuickWP WordPress REST API Toolkit, CLI, MCP Server, AI Concierge, and Editorial Web Console.

Guides

  • Getting Started ? Prerequisites (PHP 8.3+), setup, Application Passwords, and connection verification
  • CLI & Automation ? Multi-site `bin/quickwp` CLI, Markdown + Frontmatter publishing, Export, Cross-Site Sync, and Outbound Webhooks (HMAC-SHA256)
  • MCP Server & AI Concierge ? Local `bin/quickwp-mcp` server for Antigravity / Claude Desktop / Cursor + optional multilingual voice/text AI Concierge
  • Main README & Config Reference ? Full facade reference and configuration table
  • Changelog ? Release notes from `v2.0` to `v3.x`

Architecture Overview (v3)

QuickWP separates its deterministic core engine from optional interfaces (Web UI, CLI, MCP, AI Concierge), with zero external runtime dependencies:

?????????????????   ?????????????????   ?????????????????   ????????????????????
? Editorial UI  ?   ?  CLI Engine   ?   ?  MCP Server   ?   ?   AI Concierge   ?
?  (public/)    ?   ? (bin/quickwp) ?   ?(bin/quickwp-  ?   ? (Gemini/OpenAI/  ?
?               ?   ?               ?   ?     mcp)      ?   ?  Ollama local)   ?
?????????????????   ?????????????????   ?????????????????   ????????????????????
        ??????????????????????????????????????????????????????????????
                                        ?
                                        ?
                            ?????????????????????????
                            ?   QuickWP (Facade)    ?
                            ?????????????????????????
                                        ?
        ?????????????????????????????????????????????????????????????????
        ?                               ?                               ?
?????????????????????       ?????????????????????????       ?????????????????????????
?  AbstractService  ?       ?   WebhookDispatcher   ?       ?    MarkdownParser     ?
?  Post / Page /    ?       ?  (HMAC-SHA256 JSON    ?       ?  (Frontmatter + MD    ?
?  CPT / Media /    ?       ?   outbound events)    ?       ?   -> clean HTML)      ?
?  Taxonomy / Menu /?       ?????????????????????????       ?????????????????????????
?  Template / User /?
?  Comment / Health ?
?  + SyncService    ?
?????????????????????
          ?
?????????????????????
?RestClientInterface?
? RestClient (cURL) ?  (timeouts, retry/backoff on 429/5xx, local & web uploads)
?????????????????????
          ?
?????????????????????
?WordPress REST API ?
?????????????????????

Core Classes

| Class | Namespace | Responsibility | |-------|-----------|----------------| | QuickWP | QuickWP | Main facade with lazy-loaded services and response helpers | | Bootstrap | QuickWP | Static service factory | | SiteConfig / ConfigLoader | QuickWP\Config | Immutable site configuration, endpoint derivation, multi-site merging | | RestClient / RestClientInterface | QuickWP\Http | cURL client with retry/backoff, Retry-After, uploadFile() & uploadLocalFile() | | AccessControl / CsrfProtection / SessionHelper | QuickWP\Http | Timing-safe auth (hash_equals), session CSRF tokens, HTTPS-aware cookies | | AbstractService | QuickWP\Service | Shared credentials, URL builders, ID list parsing, fetchAllPages() (listAll()) | | PostService, PageService, CptService | QuickWP\Service | Content CRUD, clearable update fields, meta & acf support | | MediaService | QuickWP\Service | $_FILES upload, uploadFromPath() (CLI/scripts), Featured Image | | TaxonomyService, MenuService, TemplateService | QuickWP\Service | Categories/tags, WP 5.9+ Menus, REST schema templates | | UserService, CommentService, HealthService | QuickWP\Service | Users (/users/me), comment moderation, connectivity/auth health checks | | SyncService | QuickWP\Service | Cross-site post/page copy & update (draft-first) | | WebhookDispatcher | QuickWP\Webhook | Outbound JSON webhooks with optional HMAC-SHA256 signing | | MarkdownParser | QuickWP\Content | Zero-dependency YAML-style frontmatter + Markdown to HTML | | Application | QuickWP\Cli | Multi-site CLI command router (bin/quickwp) | | McpServer | QuickWP\Mcp | JSON-RPC 2.0 MCP server (bin/quickwp-mcp, 11 tools) | | AiConciergeService | QuickWP\Ai | Provider-agnostic multilingual AI draft generator & existing-item refiner | | Translator | QuickWP\I18n | Zero-dependency UI localization (lang/*.php, automatic en fallback) |