* fix bad indentation * remove punctuation from end of (un)ordered lists
2.2 KiB
title, description
| title | description |
|---|---|
| PHP Composer Support | PHP Composer support in Renovate |
Automated Dependency Updates for PHP Composer Dependencies
Renovate supports upgrading dependencies in PHP's composer.json files and their accompanying composer.lock lock files.
How It Works
- Renovate will search each repository for any
composer.jsonfiles - Existing dependencies will be extracted from the relevant sections of the JSON
- Renovate will resolve the dependency on Packagist or elsewhere if configured, and filter for semver versions
- A PR will be created with
composer.jsonandcomposer.lockupdated in the same commit - If the source repository has either a "changelog" file or uses GitHub releases, then Release Notes for each version will be embedded in the generated PR
Enabling
Either install the Renovate App on GitHub, or check out Renovate OSS for self-hosted.
Private packages
If you are using a privately hosted Composer package you can pass the credentials via the hostRules configuration.
{
"hostRules": [
{
"hostName": "some.vendor.com",
"hostType": "packagist",
"username": "<your-username>",
"password": "<your-password>"
}
]
}
This host rule is best added to the bot's config.js config so that it is not visible to users of the repository.
If you are using the hosted WhiteSource Renovate App then you can encrypt it with Renovate's public key instead, so that only Renovate can decrypt it.
Go to https://renovatebot.com/encrypt, paste in the secret string you wish to encrypt, click Encrypt, then copy the encrypted result.
You may encrypt your password only or even pass your username encrypted.
{
"hostRules": [
{
"hostName": "some.vendor.com",
"hostType": "packagist",
"encrypted": {
"username": "<your-encrypted-password",
"password": "<your-encrypted-password"
}
}
]
}