Skip to content

Instantly share code, notes, and snippets.

@Voltra
Created July 30, 2024 20:26
Show Gist options
  • Save Voltra/79fd436283ac8aff4e180fbe3b108e1d to your computer and use it in GitHub Desktop.
Save Voltra/79fd436283ac8aff4e180fbe3b108e1d to your computer and use it in GitHub Desktop.
Update composer dependencies to their latest version
#!/bin/bash
composer require $((\composer outdated -Do --locked --no-dev 2> /dev/null) | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g" | awk -F ' ' '{print $1 ":^" $3}' | paste -sd " ") -W
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment