Skip to content

All Adapters

An adapter wires phpClaw into one framework or CMS: its database for memory, its permission system for tool access, its CLI, and tools for that platform. Each adapter page covers one in full.


AdapterInstallPlatformPHP
Laravelcomposer require phpclaw/phpclaw-laravel10, 11, 12, 138.1+
Symfonycomposer require phpclaw/phpclaw-symfony6.4, 7, 88.1+
Drupalcomposer require phpclaw/phpclaw-drupal10, 118.1+
Magentocomposer require phpclaw/phpclaw-magento2.48.1+
WordPressplugin ZIP, uploaded in the admin6.2 or later8.1+
Joomlapackage ZIP, uploaded in the admin4, 5, 68.1+
PrestaShopmodule ZIP, uploaded in the back office8.0 or later8.1+
OpenCartextension ZIP, uploaded in the admin; one ZIP for OpenCart 3, another for 43, 48.1+

Magento’s 2.4 is the version the adapter targets; its composer.json does not constrain the Magento version. After installing or updating the Magento module, run bin/magento setup:di:compile.

AdapterTools registeredAlso
Laravelcore’s 7, plus up to 6 Laravel tools you list in configPhpClaw facade
Symfonycore’s 7, plus up to 2 Symfony tools you list in configautowired ClawInterface service
Drupalup to 15 Drupal tools; core’s 7 are added only for Drush and the agent serviceDrupal service tags for extensions
Magento10 Magento tools and core’s 7observer events for extensions
WordPress20, and 10 more WooCommerce tools when WooCommerce is activetwo REST routes
Joomla14Web Services API routes
PrestaShop14 PrestaShop tools and core’s 7per-employee API tokens
OpenCart10 OpenCart tools and core’s 7separate ZIPs for 3 and 4

AdapterSend a messageMCP server
Laravelphp artisan phpclaw "..."php artisan phpclaw:mcp-server
Symfonybin/console phpclaw "..."bin/console phpclaw:mcp-server
Drupaldrush phpclaw:run "..."drush phpclaw:mcp-server
Magentobin/magento phpclaw:run "..."bin/magento phpclaw:mcp-server
WordPresswp phpclaw send "..."wp phpclaw mcp-server
Joomlaphp cli/joomla.php phpclaw "..."php cli/joomla.php phpclaw:mcp-server
PrestaShopphp modules/phpclaw/cli/phpclaw.php send "..."php modules/phpclaw/cli/phpclaw.php mcp-server
OpenCartphp cli/phpclaw.php send "..."php cli/phpclaw.php mcp-server

Laravel and Symfony also provide phpclaw:about, phpclaw:guide, phpclaw:stats, phpclaw:jobs:list and phpclaw:jobs:status, and their MCP command accepts --transport=http. See MCP.


Every adapter stores conversations and key-value data in its own database, in the tables phpclaw_conversations, phpclaw_messages and phpclaw_memory.

AdapterDriver usedCan you choose another?
Laraveldatabaseyes, PHPCLAW_MEMORY_DRIVER
Symfonydoctrineyes, memory_driver
Drupaldatabaseno
Magentorouter memory, injected directlyno
WordPresswpdb_routerno
Joomlajoomladbno
PrestaShopps_routerno
OpenCartoc_routerno

The full list of drivers each adapter registers is on the Memory page.


These are shared across all eight, each covered in detail on the linked page:

  • Message storage setting. Turning it off stops conversation content being stored and stops cloud forwarding. See Memory: privacy and Cloud.
  • Approval gate. CliApprovalGate is installed, so mutating tools are refused in web requests. See Security: approval.
  • The eight default guards are registered at boot. See Guards.
  • All 40 lifecycle events are forwarded into the platform’s own event system, except on Joomla, where none currently arrive. See Hooks: forwarding.
  • Read-only database access through SqlReadOnlyGuard, with a credential-column list tailored to the platform. See Security: database.

See Building an Adapter.