dkx/composer-phar-installer

This package is abandoned and no longer maintained. No replacement package was suggested.

Composer phar installer plugin

Installs: 160

Dependents: 6

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:composer-plugin

0.0.1 2020-01-20 20:46 UTC

This package is auto-updated.

Last update: 2024-01-21 19:45:01 UTC


README

Composer phar installer plugin

Installation

$ composer require dkx/composer-phar-installer

Usage

Update your composer.json to install eg. phpunit:

{
    "name": "my/app",
    "extra": {
        "install-phar": {
            "dir": "tools",
            "require": {
                "phpunit": "https://phar.phpunit.de/phpunit-8.5.2.phar"
            }
        }
    },
    "autoload": {
        "psr-4": {
            "MyApp\\": "./src"
        }
    },
    "require": {
        "php": ">=7.4"
    }
}

Now every time you run composer install or composer update phpunit will be automatically fetched and saved as ./tools/phpunit.phar.