nazares/deb-sphp
最新稳定版本:1.0.3
Composer 安装命令:
composer require nazares/deb-sphp
包简介
Script to switch installed PHP versions on Debian based linux systems
README 文档
README
Debian PHP switcher is a simple script to switch your Apache and CLI configs quickly between major versions of PHP. This supports any version of php installed onto the Debian-based system.
If you support multiple products/projects that are built using either brand new or old legacy PHP functionality and you find it a pain to change config files continually this will make the whole process just one command.
Caveats
For use with Debian-based systems. For macOS php switching, I recommend a Phil Cook's php switcher script
Installation
curl -L https://raw.githubusercontent.com/nazares/deb-sphp/main/sphp.sh > /usr/local/bin/sphp
chmod +x /usr/local/bin/sphp
Composer installation
composer global require nazares/deb-sphp
Usage
Simply type sphp and the version you want to switch:
sphp 8.0 #to switch to PHP 8.0 version sphp 8.1 #to switch to PHP 8.1 version sphp 8.2 #to switch to PHP 8.2 version # ... # etc.
to get installed versions of PHP just run:
sphp
# usage: sphp <version>
# installed php versions: 8.0,8.1,8.2
License
MIT
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-01
