janpecha/composer-run
最新稳定版本:v1.0.0
Composer 安装命令:
composer require janpecha/composer-run
包简介
Run commands from Composer packages locally, without global installation.
README 文档
README
Run commands from Composer packages locally, without global installation.
Installation
Download a latest package or use Composer:
composer create-project janpecha/composer-run
Create symlink to composer-run in ~/.local/bin or add directory of Composer-Run to PATH environment variable.
Composer-Run requires PHP 8.4 or later.
Manual installation
- clone repository
- run
composer install - create symlink to file
composer-runin~./local/bin
Usage
composer-run <command>
composer-run <package> <binary-name> <arguments>
Run binary from one package
composer-run phpstan/phpstan phpstan analyse
Installs phpstan/phpstan and runs vendor/bin/phpstan analyse.
Run binary from multiple packages
composer-run phpstan/phpstan phpstan/extension-installer phpstan analyse
Installs phpstan/phpstan and phpstan/extension-installer and runs vendor/bin/phpstan analyse.
Run binary from multiple packages with extra packages from composer.json
myproject/composer.json
{
"extra": {
"phpstan-extensions": [
"phpstan/phpstan-nette",
"phpstan/phpstan-strict-rules"
]
}
}
composer-run phpstan/phpstan phpstan/extension-installer extra:phpstan-extensions -- phpstan analyse
Installs phpstan/phpstan, phpstan/extension-installer and all packages from extra.phpstan-extension section, runs vendor/bin/phpstan analyse binary.
Run binary from popular tools
PHPStan
composer-run phpstan <arguments>
Installs phpstan/phpstan, phpstan/extension-installer and extra:phpstan-extensions, runs vendor/bin/phpstan <arguments> binary.
Commands
help
composer-run help
Prints help.
clean
composer-run clean <days>
Remove installations older than <days>.
Default number of days is 30.
Configuration
Create configuration file .config.php in Composer-Run directory.
<?php return [ // my configuration 'tempDirectory' => '/path/to/temp', ];
composerExecutable
Name of Composer executable file (or path to executable file).
Default composer.
tempDirectory
Path to temp directory for package installations.
Default <Composer-Run directory>/.tmp.
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-11-07