fqqdk/packagist-publisher

A handy composer script to be used to publish your package to packagist

Installs: 176

Dependents: 5

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:composer-plugin

1.2.7 2021-05-18 11:41 UTC

This package is auto-updated.

Last update: 2022-01-03 09:58:43 UTC


README

This is a handy composer command that can be used to easily publish your composer package to packagist.

Usage:

in your composer.json:

{
    "require-dev": {
        "fqqdk/packagist-publisher": "*"
    }
}

Deploying your package to packagist:

composer publish [-b|--api_base_url API_BASE_URL] [--] <username> <api_token>

The api_base_url option has the default value of https://packagist.org/ (of the main packagist repository) for convenience, but setting this allows you to use your own packagist style registry (provided it has the same API as packagist)

username is your packagist username, and api_token is your packagist API token. When using this command in a continous build environment, consider passing these parameters in a secure way, e.g. using environment variables.