A community WASM plugin for proto that manages Composer versions.
Composer requires PHP. Install PHP via proto-php-plugin or have it available on your system PATH.
proto plugin add composer "github://KonstantinKai/proto-composer-plugin"
proto install composer# Install Composer
proto install composer 2.8
# Use Composer
proto run composer -- --version
# List available versions
proto versions composer
# Pin a version in the current directory
proto pin composer 2.8Configure in .prototools under [tools.composer]:
[tools.composer]
# Custom COMPOSER_HOME directory (optional)
composer-home = "/path/to/composer/home"| Platform | Architecture | Install method |
|---|---|---|
| Linux | x64, arm64 | Download PHAR binary |
| macOS | x64, arm64 | Download PHAR binary |
| Windows | x64 | Download PHAR + .bat wrapper |
Unlike most proto plugins that download prebuilt native binaries, Composer is distributed as a PHP archive (PHAR). The plugin uses native_install to:
- Download
composer.pharfromgetcomposer.org/download/<version>/composer.phar - On Unix: save as
composerandchmod +x - On Windows: save as
composer.pharand create acomposer.batwrapper
The plugin declares requires: ["php"] so proto ensures PHP is available before installing Composer.
latest— resolves to the newest stable Composer 2.x releasestable/lts— same aslatest- Partial versions like
2.8resolve to the latest patch (e.g.2.8.6)
- proto-php-plugin — PHP version management for proto
If you find this plugin useful, please give it a star on GitHub — it helps others discover the project!
MIT