This is a CLI tool to manage PHP versions on Ubuntu. It's a C program that can be used to install, uninstall, and switch between PHP versions. It's a simple tool that can be used to manage PHP versions on Ubuntu.
⭐⭐
If you like this project, please consider starring it. Stars are a way to show appreciation and interest in this
project. And who knows, I may be more inclined to improve it further.
⭐⭐
Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this :)
To install the tool, you can run the following commands:
curl -o- https://raw.githubusercontent.com/ArdaGnsrn/pvm-ubuntu/master/install.sh | sudo bash
wget -qO- https://raw.githubusercontent.com/ArdaGnsrn/pvm-ubuntu/master/install.sh | sudo bash
To use the tool, you can run the following commands:
$ pvm list
Available PHP versions:
7.3
7.4
* 8.2
$ pvm install 8.1
PHP version 8.1 is installed.
You can use it by running 'pvm use 8.1'.
$ pvm use 8.1
Now using PHP version 8.1.
$ php -v
PHP 8.1.27 (cli) (built: Dec 21 2023 20:19:54) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.27, Copyright (c) Zend Technologies
with Zend OPcache v8.1.27, Copyright (c), by Zend Technologies
$ pvm uninstall 8.1
PHP version 8.1 is uninstalled.
If you are looking for an alternative to this tool,
Do you have an alternative? Please add it here and create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details