Phpx — AI skill for Claude Code
PHPX is a PHP CLI that executes AI focused MCP servers writter in PHP and composer packages.
How to install Phpx
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eduardocruz/phpx and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Phpx does
PHPX is a PHP CLI that executes AI focused MCP servers writter in PHP and composer packages.
Alternatives in AI
- MCP Use — The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents 9.5k ★
- Rulesync — by dyoshikawa - A Node.js CLI tool that automatically generates configs (rules, ignore files, MCP servers, com 909 ★
- Room — Open-source earning-focused swarm intelligence engine 838 ★
README
PHPX
PHPX is the MCP server execution tool for PHP. It allows you to execute PHP packages and PHAR files without installing them globally, featuring a beautiful and user-friendly command-line interface powered by Laravel Prompts.
Requirements
- PHP 8.1 or higher
- Composer 2.0 or higher
- Terminal with support for ANSI escape sequences (for interactive features)
Initial Motivation
PHPX was inspired by similar tools in other ecosystems:
npxfor Node.js (https://github.com/npm/npx) - Executes Node.js packagesuvfor Python (https://github.com/astral-sh/uv) - Executes Python packages
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Modern AI-powered code editors like Cursor, Windsurf, and Claude Desktop use MCP Servers to provide AI capabilities in development environments.
Having package execution tools like `npx` and `uv` allows developers to easily run MCP Servers without permanent installation. However, PHP lacked such a tool, creating a gap for PHP developers working with AI-assisted coding tools.
PHPX was created to bridge this gap, enabling PHP projects to be easily integrated with the AI-assisted development ecosystem, particularly when working with MCP-compatible editors and tools (https://github.com/modelcontextprotocol/servers).
Why PHPX?
Even if you already have Composer and your common PHP tools installed, PHPX offers several advantages:
Use Cases and Benefits
**Try Before You Install**
- Test new tools without adding them to your project
phpx phpstan/phpstan analyse src/without modifying composer.json
**Version Flexibility**
- Use different versions of tools without changing your project requirements
phpx phpunit/phpunit:9.6 --test-suffix=...for a one-off run with a specific version
**Standardized CI Environments**
- Ensure everyone uses the same version of tools regardless of local inst
Related Skills
Claude Agent SDK Laravel
Anthropic Claude Agent SDK for PHP & Laravel — build AI agents with tool use, sandboxing, MCP servers, subagen
Hol Guard
Open-source antivirus for AI agents: block risky tools, secret access, prompt injection, malicious packages, M
Metaharness
🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MC
Aiterm MCP
One persistent MCP terminal your AI drives — and launches other coding agents (Codex/Grok/Composer) into. SSH,
FL Studio Agent Composer
Agent Composer for FL Studio: chat with an AI agent (Claude, Codex, DeepSeek, Ollama, your own) that works ins
Sloppy
Static analysis for the debt AI agents leave in PHP: 25 rules, Claude Code hooks, git-diff review, a Rector an
Related Agents
CLI Subagents Claude
Runs a task as a separate Claude Code session on another of the user's Claude accounts (CLI Subagents), with t
Raider Test Writer
Write Langertha::Raider tests with Test2::V0 — agent loop, MCP tool calling, CLI/Hall/ACP behavior. Tests neve
Supply Chain Reviewer
Read-only dependency supply-chain reviewer for the forgeward gate. Fires ONLY when the diff adds or changes a