applications(php): add private repositories indstructions#900
Open
applications(php): add private repositories indstructions#900
Conversation
|
| ℹ️ Name | 🔗 Infos & links |
|---|---|
| 🌱 Deploying commit | 8ff796b |
| 👁️ Preview | Generating preview app... |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for PHP applications to help users authenticate Composer against private package repositories during deployment, using the COMPOSER_AUTH environment variable (instead of committing credentials).
Changes:
- Added a new “Private repositories” section to the PHP Composer documentation.
- Documented using
COMPOSER_AUTHfor deployment-time authentication and warned against committingauth.json. - Linked to Composer’s authentication schema documentation.
|
|
||
| ## Private repositories | ||
|
|
||
| If your project depends on packages from private repositories (such as [Packagist.com](https://packagist.com/), Laravel Nova, or a private Git host), you need to configure authentication for Composer during deployment. Set the `COMPOSER_AUTH` environment variable in the Clever Cloud console with a JSON object containing your credentials. Composer reads this variable natively at install time, so you don't need to commit any secret to your repository. |
|
|
||
| ## Private repositories | ||
|
|
||
| If your project depends on packages from private repositories (such as [Packagist.com](https://packagist.com/), Laravel Nova, or a private Git host), you need to configure authentication for Composer during deployment. Set the `COMPOSER_AUTH` environment variable in the Clever Cloud console with a JSON object containing your credentials. Composer reads this variable natively at install time, so you don't need to commit any secret to your repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 What does this PR do?
This pull request adds documentation to help users configure Composer authentication for private PHP package repositories. The new section explains how to securely provide credentials using the
COMPOSER_AUTHenvironment variable, and warns against committing sensitive information to version control.Composer authentication for private repositories:
COMPOSER_AUTHenvironment variable for authenticating with private Composer repositories, including a warning not to commitauth.jsonfiles to the repository and a link to the Composer authentication schema documentation.🔗 Related Issue (if applicable)
🧪 Type of Change
✅ Quick Checklist