An open API service indexing awesome lists of open source software.

https://github.com/ardagnsrn/pvm-ubuntu

This is a CLI tool to manage PHP versions on Ubuntu.
https://github.com/ardagnsrn/pvm-ubuntu

php php-version-manager php83 pvm pvm-ubuntu

Last synced: 3 months ago
JSON representation

This is a CLI tool to manage PHP versions on Ubuntu.

Awesome Lists containing this project

README

        

# PHP Version Manager For Ubuntu

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.*\
⭐⭐

## Buy me a coffee

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 :)

Buy Me A Coffee

## Installation
To install the tool, you can run the following commands:

```sh
curl -o- https://raw.githubusercontent.com/ArdaGnsrn/pvm-ubuntu/master/install.sh | sudo bash
```
```sh
wget -qO- https://raw.githubusercontent.com/ArdaGnsrn/pvm-ubuntu/master/install.sh | sudo bash
```

## Usage
To use the tool, you can run the following commands:

```sh
$ 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.
```

## Alternatives
If you are looking for an alternative to this tool,
- [fatihozpolat/pvm-laragon](https://github.com/fatihozpolat/pvm-laragon)
- [fatihozpolat/pvm-windows](https://github.com/fatihozpolat/pvm-windows)

Do you have an alternative? Please add it here and create a pull request.

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details