PHPackages                             matesofmate/composer-extension - 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. matesofmate/composer-extension

ActiveSymfony-ai-mate[Utility &amp; Helpers](/categories/utility)

matesofmate/composer-extension
==============================

MCP extension providing Composer dependency management tools for AI assistants

0.3.1(1w ago)15.9k↑77.2%1MITPHPPHP &gt;=8.2CI passing

Since Jan 26Pushed 1w agoCompare

[ Source](https://github.com/MatesOfMate/composer-extension)[ Packagist](https://packagist.org/packages/matesofmate/composer-extension)[ RSS](/packages/matesofmate-composer-extension/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (28)Versions (5)Used By (0)

Composer Extension for Symfony AI Mate
======================================

[](#composer-extension-for-symfony-ai-mate)

Composer dependency management tools for AI assistants, with compact encoded output tailored for token-efficient workflows.

Features
--------

[](#features)

- install, require, remove, update, and explain Composer operations
- `composer://config` resource for project dependency context
- core Mate encoded output for compact responses
- custom command support for Docker or wrapper-based setups

Installation
------------

[](#installation)

```
composer require --dev matesofmate/composer-extension
vendor/bin/mate init
```

In current AI Mate setups, extension discovery is handled automatically after Composer install and update. Use `vendor/bin/mate discover` when you want to refresh discovery artifacts such as `mate/AGENT_INSTRUCTIONS.md`.

Use these commands when troubleshooting:

```
vendor/bin/mate debug:extensions
vendor/bin/mate debug:capabilities
vendor/bin/mate mcp:tools:list --extension=matesofmate/composer-extension
```

For Codex, use the generated wrapper:

```
./bin/codex
```

Custom Command Configuration
----------------------------

[](#custom-command-configuration)

If Composer must run through Docker or another wrapper, configure `matesofmate_composer.custom_command`.

```
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $container): void {
    $container->parameters()->set('matesofmate_composer.custom_command', [
        'docker', 'compose', 'exec', 'php', 'composer',
    ]);
};
```

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

[](#requirements)

- PHP 8.2+
- Symfony AI Mate 0.8+ required
- Composer available locally, or `matesofmate_composer.custom_command` configured

Available Tools
---------------

[](#available-tools)

- `composer-install`
- `composer-remove`
- `composer-require`
- `composer-update`
- `composer-explain`

All tools return encoded strings through Mate's core `ResponseEncoder`. Install the suggested `helgesverre/toon` package if you want TOON responses; otherwise the same payload falls back to JSON.

Available Resource
------------------

[](#available-resource)

- `composer://config`

This resource exposes `composer.json` content as an encoded structured payload.

Development
-----------

[](#development)

```
composer install
composer test
composer lint
composer fix
```

Contributing
------------

[](#contributing)

Contributions are welcome. See [CONTRIBUTING.md](../../CONTRIBUTING.md).

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance98

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~49 days

Total

4

Last Release

11d ago

### Community

Maintainers

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

---

Top Contributors

[![wachterjohannes](https://avatars.githubusercontent.com/u/1464615?v=4)](https://github.com/wachterjohannes "wachterjohannes (15 commits)")

---

Tags

composersymfonymcpaidependency managementtoonai-mate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matesofmate-composer-extension/health.svg)

```
[![Health](https://phpackages.com/badges/matesofmate-composer-extension/health.svg)](https://phpackages.com/packages/matesofmate-composer-extension)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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