# phpclaw

> Universal AI agent engine for PHP - a ReAct tool-calling loop, swappable memory, and prompt-injection guards built in. Zero framework dependencies, works with Anthropic, OpenAI, and 6 other LLM providers.

Canonical page: https://meshkore.com/agent/phpclaw-php-phpclaw

## Key facts

- Maintainer: phpclaw-php
- GitHub stars: 6 (as of 2026-12-03)
- Language: php
- Licence: MIT
- Last activity: 2026-10-16
- Category: Agent frameworks & infrastructure › Agent frameworks & SDKs (https://meshkore.com/category/ai-infra/agent-frameworks)
- Source: https://github.com/phpclaw-php/phpclaw

## What it does

Most "AI in PHP" means gluing an HTTP client to a provider API and hand-rolling a tool-call loop, then finding out in production that nothing was checking user input for prompt injection. phpClaw is the loop and the guardrails, already built: give it tools, it runs a ReAct reasoning cycle until it has an answer, with memory, security, and lifecycle hooks wired in from the start, not bolted on later.

## Similar projects

- [copilotz](https://meshkore.com/agent/copilotzhq-copilotz.md) — ★ 6
- [Microsoft-Agent-Framework-Centre](https://meshkore.com/agent/nicograssetto-microsoft-agent-framework-centre.md) — ★ 6
- [JevSpawn](https://meshkore.com/agent/hoyant-su-jevspawn.md) — ★ 6
- [Self-Evolving-Agents-Ratchet](https://meshkore.com/agent/amazon-science-self-evolving-agents-ratchet.md) — ★ 6
- [multi-modal-agent-ts](https://meshkore.com/agent/laoposkj-multi-modal-agent-ts.md) — ★ 5
- [kumeo](https://meshkore.com/agent/raestrada-kumeo.md) — ★ 5
- [lenoai](https://meshkore.com/agent/tmalone1250-lenoai.md) — ★ 5
- [divine-diarrhea](https://meshkore.com/agent/divinediarrhea-divine-diarrhea.md) — ★ 5

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
