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.com
example: - Custom domain example:
host
- GitHub's domain, if empty it's equivalent:github.com
username
- alwaysx-oauth-basic
password
- GitHub'stoken
(generate new one using this link)
BitBucket
-
bitbucket.org
example: - Custom domain example:
host
- BitBucket's domain, if empty it's equivalent:bitbucket.org
username
- BitBucket'susername
password
- BitBucket'sapp_password
(generate new one using this link)
Usage in composer.json
file
GitHub
-
github.com
example: - Custom domain example:
owner
- GitHub's repositoryowner
host
- API endpoint domain, if empty it's equivalent:github.com
BitBucket
-
bitbucket.org
example: - Custom domain example:
owner
- BitBucket'sworkspace
host
- 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.4
version. - Composer ^
2.0
version.
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