nazares/deb-sphp
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
nazares/deb-sphp 适用场景与选型建议
nazares/deb-sphp 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nazares/deb-sphp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nazares/deb-sphp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-01
