PHPackages                             dazz/php-mcp-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dazz/php-mcp-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dazz/php-mcp-tools
==================

fill description

06PHPCI failing

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dazz/php-mcp-tools)[ Packagist](https://packagist.org/packages/dazz/php-mcp-tools)[ RSS](/packages/dazz-php-mcp-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP MCP Tools
=============

[](#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
------------

[](#installation)

```
composer require dazz/php-mcp-tools
```

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Composer (optional)
- Symfony CLI (optional)
- Pie (optional)

Usage
-----

[](#usage)

### When used with php-llm/llm-chain-bundle

[](#when-used-with-php-llmllm-chain-bundle)

```
llm_chain:

services:
  _defaults:
    autowire: true
    autoconfigure: true

  # ...
  Dazz\PhpMcpTools\Tool\Random: ~
  Dazz\PhpMcpTools\Tool\Composer:
    arguments:
      $projectDir: '%kernel.project_dir%'
```

Tools
-----

[](#tools)

### Random

[](#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

[](#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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2863b0ff5b1cb9fadc2a52203d011218e0d3b12389e0b26b0a4ce387cf59de1?d=identicon)[dazz](/maintainers/dazz)

---

Top Contributors

[![dazz](https://avatars.githubusercontent.com/u/182954?v=4)](https://github.com/dazz "dazz (25 commits)")

---

Tags

llmmcpphptool

### Embed Badge

![Health badge](/badges/dazz-php-mcp-tools/health.svg)

```
[![Health](https://phpackages.com/badges/dazz-php-mcp-tools/health.svg)](https://phpackages.com/packages/dazz-php-mcp-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
