iserv/composertoolsinstaller
Composer 安装命令:
composer require iserv/composertoolsinstaller
包简介
Allows to install tools as standalone Composer dependencies.
README 文档
README
How to use cotor
You can install any composer based dev tool with cotor. It will install each package in a tools folder in your current working directory.
For each tool a standalone folder named by the package without the vendor will be created.
Commands
- list: Lists all available commands.
- install: Installs all tools and extensions listed in your composer.json at
extra.cotor. - install $name: Installs a new tool.
$namemust be a tool's package or registered shortcut name. - update $name: Updates an installed tool.
$namemust be a tool's package or registered shortcut name. - update-all: Updates all installed tools.
- outdated: Lists all tools and checks if they are up-to-date.
- extend $name $extension: Installs a tool extension.
$namemust be a tool's package or registered shortcut name.$extensionmust be the package name of the extension.
composer.json
Cotor tracks your required tools in the extra section in your composer.json file:
{
"extra": {
"cotor": {
"friendsofphp/php-cs-fixer": "^3.1",
"phpstan/phpstan": "^1.5",
"vimeo/psalm": "^4.10"
}
}
}
This way you can keep track of the tools and cotor can install them easily.
How to build cotor
- Ensure you've got
boxinstalled in your$PATH. - Run
box compileto create a newcotor.phar.
box takes the latest git tag or hash to propagate this as the PHARs version. So be sure to hava a proper git history before running the command.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-27