CLI tool/script to upgrade and manage PHP version-specific APT packages with ease
php-upgrade provides convenient wrapper functions around the apt and dkpg family of commands.
php-upgrade- Upgrade all PHP packages for a specific versionphp-upgrade purge- Purge all PHP packages for a specific versionphp-upgrade list-packages- List all installed packages for a specific PHP version
php-upgrade ini-diff- Compare php.ini files for installed versions
php-upgrade latest-ver- Get the version number of the latest PHP releasephp-upgrade installed-ver- Get the currently installed PHP version number
A .deb package is provided on the releases page that can be installed with sudo apt install ./PACKAGE on Debian based distros such as Ubuntu.
If you have Rust and Cargo installed (install Rust), then you can build and install php-upgrade with the command cargo install php-upgrade.
php-upgrade is built using Cargo. See Cargo's build command documentation for more info. Additionally, cargo-deb is used to produce .deb files via cargo deb.