eduardocruz

Phpx — AI skill for Claude Code

AI community

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:

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

  1. **Try Before You Install**

    • Test new tools without adding them to your project
    • phpx phpstan/phpstan analyse src/ without modifying composer.json
  2. **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
  3. **Standardized CI Environments**

    • Ensure everyone uses the same version of tools regardless of local inst