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 3, plus up to 7 Laravel tools and core’s 4 opt-in tools you list in configPhpClaw facade
Symfonycore’s 3, plus up to 3 Symfony tools and core’s 4 opt-in tools you list in configautowired ClawInterface service
Drupalup to 15 Drupal tools; 5 core tools are added only for Drush, the agent service and the MCP serverDrupal service tags for extensions
Magento10 Magento tools and 5 core toolsobserver events for extensions
WordPress16, and 10 more WooCommerce tools when WooCommerce is activetwo REST routes
Joomla10Web Services API routes
PrestaShop14 PrestaShop tools and core’s 3per-employee API tokens
OpenCart10 OpenCart tools and core’s 3separate ZIPs for 3 and 4

Core’s 3 are code_search, file_read and project_info. Core’s 4 opt-in tools, shell_exec, http_request, file_write and file_edit, are registered only when you add them, with one exception: Magento, and Drupal’s Drush, agent service and MCP server, always register shell_exec and http_request, which with core’s 3 make their 5 core tools.


AdapterSend a messageInteractive chatMCP server
Laravelphp artisan phpclaw "..."php artisan phpclaw:chatphp artisan phpclaw:mcp-server
Symfonybin/console phpclaw "..."bin/console phpclaw:chatbin/console phpclaw:mcp-server
Drupaldrush phpclaw:run "..."drush phpclaw:chatdrush phpclaw:mcp-server
Magentobin/magento phpclaw:run "..."bin/magento phpclaw:chatbin/magento phpclaw:mcp-server
WordPresswp phpclaw send "..."wp phpclaw chatwp phpclaw mcp-server
Joomlaphp cli/joomla.php phpclaw "..."php cli/joomla.php phpclaw:chatphp cli/joomla.php phpclaw:mcp-server
PrestaShopphp modules/phpclaw/cli/phpclaw.php send "..."the same script with chatphp modules/phpclaw/cli/phpclaw.php mcp-server
OpenCartphp system/library/phpclaw/cli/phpclaw.php send "..." (OpenCart 3), php extension/phpclaw/cli/phpclaw.php send "..." (OpenCart 4)the same script with chatthe same script with 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. Laravel and Symfony with durable_runs on pause them for a later decision instead. See Security: approval.
  • The eight default guards are registered at boot. See Guards.
  • All 54 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.