Download the PHP package piotrpress/private-composer without Composer
On this page you can find all versions of the php package piotrpress/private-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download piotrpress/private-composer
More information about piotrpress/private-composer
Files in piotrpress/private-composer
Package private-composer
Short Description This composer plugin adds github and bitbucket protocols support to Composer in order to simplify private repositories handling.
License MIT
Homepage https://github.com/PiotrPress/private-composer
Informations about the package private-composer
Private Composer
This composer plugin adds github and bitbucket protocols support to Composer in order to simplify private repositories handling.
Private Composer uses GitHub and BitBucket APIs to build packages.json virtual file on the fly, with all packages from owner's repositories, which can be used in repository type composer in composer.json file.
Example
Instead of manually adding each one repository separately to composer.json file, e.g.:
use (in this example) github protocol:
Installation
-
Add the plugin as a global composer requirement:
- Allow the plugin execution:
Authentication
Add GitHub/BitBucket API authentication credentials:
NOTE: using --global option is recommended to keep credentials outside of project's files.
GitHub
-
github.comexample: - Custom domain example:
host- GitHub's domain, if empty it's equivalent:github.comusername- alwaysx-oauth-basicpassword- GitHub'stoken(generate new one using this link)
BitBucket
-
bitbucket.orgexample: - Custom domain example:
host- BitBucket's domain, if empty it's equivalent:bitbucket.orgusername- BitBucket'susernamepassword- BitBucket'sapp_password(generate new one using this link)
Usage in composer.json file
GitHub
-
github.comexample: - Custom domain example:
owner- GitHub's repositoryownerhost- API endpoint domain, if empty it's equivalent:github.com
BitBucket
-
bitbucket.orgexample: - Custom domain example:
owner- BitBucket'sworkspacehost- API endpoint domain, if empty it's equivalent:bitbucket.org
Usage as a command
Command's output is a valid packages.json file content.
Example
Note
If there are many repositories to scan, it may be necessary to increase the process timeout.
Requirements
- PHP >=
7.4version. - Composer ^
2.0version.
License
MIT
All versions of private-composer with dependencies
composer-plugin-api Version ^2.0
piotrpress/streamer Version ^1.0
piotrpress/remoter Version ^1.0