phpclaw-monorepo
An open-source AI agent framework that adds tool execution, memory, and security guards to PHP apps.
What does it do?
Developers specify a model provider through environment variables, create an agent with a builder, and register the tools their app needs. In a ReAct loop, the agent decides which tools to call and in what order, observes the results, and forms an answer. Pipelines connect multiple steps, while graphs handle branching, pauses, and resumption. Built-in security guards check several input risks, including prompt injection and personal information, and adapters from Laravel to WordPress connect the agent to existing apps.
Key features
- Select and call registered tools in a ReAct loop
- Automatically detect multiple LLM providers from environment variables
- Build pipelines with retries and fallback paths and graphs that support branching
- Use built-in security guards and sanitize tool results
- Use adapters for Laravel, Symfony, and several CMSs
- Expose an existing tool registry through an MCP server