Skip to content

handy composer script to publish a package to packagist

License

Notifications You must be signed in to change notification settings

fqqdk/packagist-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

handy composer script to publish a package to packagist

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages