php-upgrade

Crates.iophp-upgrade
lib.rsphp-upgrade
version0.1.0
created_at2025-12-15 18:45:19.502963+00
updated_at2025-12-15 18:45:19.502963+00
descriptionCLI tool/script to upgrade and manage PHP version-specific APT packages with ease
homepagehttps://www.brandonfowler.me/php-upgrade/
repositoryhttps://github.com/BrandonXLF/php-upgrade
max_upload_size
id1986525
size62,724
Brandon Fowler (BrandonXLF)

documentation

README

php-upgrade

CLI tool/script to upgrade and manage PHP version-specific APT packages with ease

Features

Package Management

php-upgrade provides convenient wrapper functions around the apt and dkpg family of commands.

  • php-upgrade - Upgrade all PHP packages for a specific version
  • php-upgrade purge - Purge all PHP packages for a specific version
  • php-upgrade list-packages - List all installed packages for a specific PHP version

Configuration Management

  • php-upgrade ini-diff - Compare php.ini files for installed versions

Version Retrieval

  • php-upgrade latest-ver - Get the version number of the latest PHP release
  • php-upgrade installed-ver - Get the currently installed PHP version number

Installation

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.

Building

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.

Commit count: 0

cargo fmt