Download the PHP package iserv/composertoolsinstaller without Composer
On this page you can find all versions of the php package iserv/composertoolsinstaller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iserv/composertoolsinstaller
More information about iserv/composertoolsinstaller
Files in iserv/composertoolsinstaller
Package composertoolsinstaller
Short Description Allows to install tools as standalone Composer dependencies.
License MIT
Homepage https://github.com/IServ-GmbH/cotor/
Informations about the package composertoolsinstaller
Composer Tools Installer aka Cotor
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.
Configuration
cotor can be configured using a cotor.json file in the project root.
Example:
Options
php: (string, default:null) The PHP platform version to use for tool installations.repositories: (array, default:[]) Composer repositories to use for tool installations.sync: (boolean, default:true) Whether to automatically inheritrequire.phpandrepositoriesfrom the rootcomposer.json.
Values in cotor.json will overwrite values inherited from composer.json.
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.
All versions of composertoolsinstaller with dependencies
symfony/console Version ^7.0
symfony/filesystem Version ^7.0
symfony/process Version ^7.0