awd-studio/awd-installer

A plugin to use custom installers for composer (see: https://getcomposer.org/doc/articles/plugins.md)

Installs: 160

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin

v2.1.0 2021-10-28 11:02 UTC

This package is auto-updated.

Last update: 2024-04-28 16:33:15 UTC


README

A plugin to use custom installers for composer

Installation:

composer install awd-studio/awd-installer

Usage:

Add a block to the extra section with a name awd-additions, and set the path that you need to install extra-libraries to.

{
    "extra": {
        "awd-additions": "path_that_you_need/{$name}/"
    }
}

Then, add an extra-library to repository section, with the type awd-addition.

{
    "repositories": [    
        {
            "type": "package",
            "package": {
                "name": "name-of/my-package",
                "version": "1.0",
                "type": "awd-addition",
                "dist": {
                    "url": "https://my.repo/extra-lib..zip",
                    "type": "zip"
                },
                "bin": [
                    "runme"
                ]
            }
        }
    ]
}

If you don't need to use library's binaries - that section is nor required.

After those actions you can just require the extra library either with the cli, or in required section:

composer require name-of/my-package

or

{
    "require": {
        "name-of/my-package": "^1.0"
    }
}

Plugin installs the package into the directory, that was set in extra section, with all binaries from the package settings.