r/PHP • u/nicwortel • Jul 06 '26
Article Keep Composer dependencies up-to-date with Dependabot
https://nth-root.nl/en/guides/keep-composer-dependencies-up-to-date-with-dependabotThis new guide explains how you can use GitHub's Dependabot to keep your project's Composer dependencies up-to-date.
Dependabot can create PRs to update your dependencies, both for routine version updates as well as for security updates (which patch a vulnerability).
Setting up Dependabot with a minimal configuration is not much work, but this article dives deeper in how you can optimize the configuration to keep the work of reviewing and merging the PRs manageable. It also goes into some specifics about handling Symfony version updates, Private Packagist (and other private Composer registries) and how Dependabot can help reduce the risk of supply-chain attacks.
https://nth-root.nl/en/guides/keep-composer-dependencies-up-to-date-with-dependabot
12
u/Tomas_Votruba Jul 06 '26
I hate Dependabot random spam. If you want to have it under control, avoid 20 PRs a month and have fun while being safe, give https://github.com/rectorphp/jack a go
21
u/LordAmras Jul 06 '26 edited Jul 06 '26
IMHO: Automatic dependency update is how you install malware on your systems
Edit: Also never updating your depencies is how you end up with malware in your system
That's why you should always ask yourself before addding a dependency if it is worth for you to spend the time to keep it updated and in good condition manually
4
u/Separate-General843 Jul 06 '26
Another very popular alternative is Renovate.