2017 © Pedro Peláez
 

composer-plugin composer-tool-installer-plugin

composer plugin to manage needed tools, such as PHPUnit or PhantomJS.

image

tm/composer-tool-installer-plugin

composer plugin to manage needed tools, such as PHPUnit or PhantomJS.

  • Monday, November 7, 2016
  • by tommymuehle
  • Repository
  • 3 Watchers
  • 4 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

=======, (*1)

composer-tool-installer-plugin

Minimum PHP Version, (*2)

Install project requirements with composer, (*3)

This plugin is the right choice if your composer-project requires some extra binaries (own Go-Lang binaries) or an special toolset for testing (PHPUnit, PhantomJS, ...) or some tools for QA control (phpcs, phpmd, security-checker, ...)., (*4)

With this plugin you can manage all this stuff in your project composer.json file. So you can be sure that all developers in your project get the required files in the needed version, optional with GPG signature or Pub-Key verification for each requirement., (*5)

Every required file will be saved in the composer binary directory, (*6)

This plugin is heavily inspired on tooly-composer-script - PHAR management with composer, (*7)

Requirements

  • PHP >= 5.6
  • composer

Install

composer require tm/composer-tool-installer-plugin

Or if you want to use it in multiple projects:, (*8)

composer global require tm/composer-tool-installer-plugin

Usage

The composer.json scheme has a part "extra" which is used in this plugin. Its described here., (*9)

To add a requirement (tool or binary) you can add this manually (see section below) to the project composer.json file or you can use the composer CLI. Every time you use the command the given values are saved, in the composer cache directory, and are proposed on the next time., (*10)

composer tool-installer:install

If you want to see the current configuration simply run:, (*11)

composer tool-installer:show

Configuration

You can find a sample configuration here. The complete configuration options are described in the wiki., (*12)

Examples

  • [PHPUnit] with GPG verification
{
    ...
    "extra": {
        "tools": {
            "phpunit": {
                "url": "https://phar.phpunit.de/phpunit-5.6.1.phar",
                "sign-url": "https://phar.phpunit.de/phpunit-5.6.1.phar.asc",
            }
        }
    }
    ...
}
  • [humhub] with needed pub-key
{
    ...
    "extra": {
        "tools": {
            "humbug": {
                "url": "https://github.com/padraic/humbug/releases/download/1.0.0-alpha2/humbug.phar",
                "key-url": "https://github.com/padraic/humbug/releases/download/1.0.0-alpha2/humbug.phar.pubkey",
            }
        }
    }
    ...
}
  • [own binary] not only for developing
{
    ...
    "extra": {
        "tools": {
            "my-binary": {
                "url": "https://my-package-server/my-binary.bin",
                "only-dev": false
            }
        }
    }
    ...
}

Contribution

Please refer to CONTRIBUTING.md for information on how to contribute., (*13)

The Versions

07/11 2016

dev-master

9999999-dev https://github.com/tommy-muehle/composer-tool-installer-plugin

composer plugin to manage needed tools, such as PHPUnit or PhantomJS.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer phar installer composer-installer composer-plugin phar-management composer-phar phar-handling gpg-verification tool-handling tool-management

07/11 2016

0.1.0

0.1.0.0 https://github.com/tommy-muehle/composer-tool-installer-plugin

composer plugin to manage needed tools, such as PHPUnit or PhantomJS.

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • composer-plugin-api ^1.0

 

The Development Requires

composer phar installer composer-installer composer-plugin phar-management composer-phar phar-handling gpg-verification tool-handling tool-management