https://github.com/dazz/php-mcp-tools
PHP MCP Tools is a collection of utilities for managing and automating PHP projects. It provides command-line tools to analyze dependencies, check for outdated packages, and streamline project maintenance. Designed for developers who want better insights into their PHP projects.
https://github.com/dazz/php-mcp-tools
llm mcp php tool
Last synced: 4 months ago
JSON representation
PHP MCP Tools is a collection of utilities for managing and automating PHP projects. It provides command-line tools to analyze dependencies, check for outdated packages, and streamline project maintenance. Designed for developers who want better insights into their PHP projects.
- Host: GitHub
- URL: https://github.com/dazz/php-mcp-tools
- Owner: dazz
- License: mit
- Created: 2025-03-23T15:38:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T21:50:42.000Z (over 1 year ago)
- Last Synced: 2026-01-11T15:16:56.064Z (6 months ago)
- Topics: llm, mcp, php, tool
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP MCP Tools
PHP MCP Tools is a collection of utilities for managing and automating PHP projects with Composer.
It provides tools to analyze dependencies, check for outdated packages, and streamline project maintenance.
> The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
## Installation
```bash
composer require dazz/php-mcp-tools
```
## Requirements
- PHP 8.2 or higher
- Composer (optional)
- Symfony CLI (optional)
- Pie (optional)
## Usage
### When used with php-llm/llm-chain-bundle
```yaml
llm_chain:
services:
_defaults:
autowire: true
autoconfigure: true
# ...
Dazz\PhpMcpTools\Tool\Random: ~
Dazz\PhpMcpTools\Tool\Composer:
arguments:
$projectDir: '%kernel.project_dir%'
```
## Tools
### Random
1. `random_number`
- Get a random number between min and max
- Inputs:
- `min` (int): min number
- `max` (int): max number
- Returns: A random number between min and max
### Composer
1. `composer_exists`
- Check if composer executable is existing
- Returns: composer executable exists
2. `composer_execute`
- Execute a composer command
- Inputs:
- `command` (string): the command to execute
- `options` (array): additional options for the command
- `arguments` (array): additional arguments for the command
- `captureStdErr` (bool): whether to capture stderr output