Skip to content

快速构建 swoole 的 php 环境 Ubuntu 20.04 / 21.10 以及 apple silicon

Notifications You must be signed in to change notification settings

Mfuns-cn/build-php-shell

Repository files navigation

快速构建适用于 Swoole Hyperf 的 PHP 开发环境

本脚本仅适用于开发,上线部署请使用项目仓库中的容器脚本。

请自行阅读并调整脚本内容后使用

适用环境: ubuntu 20.04+ / macos apple silicon

默认安装

  • swoole
  • redis
  • composer

快速开始

  • PHP 8.1.27
  • Swoole 5.1.2
  • Composer latest
if [ -f /usr/bin/curl ];then curl -sSO https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/php-81.sh;else wget -O php-81.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/php-81.sh;fi;sudo bash php-81.sh
if [ -f /usr/bin/curl ];then curl -sSO https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/setenv_php81.sh;else wget -O setenv_php81.sh https://mirror.ghproxy.com/https://raw.githubusercontent.com/Mfuns-cn/build-php-shell/master/setenv_php81.sh;fi;sudo bash setenv_php81.sh
sudo bash ./php-81.sh
sudo bash ./setenv_php81.sh
sudo bash ./macos-php-81.sh
sudo bash ./setenv_macos_php81.sh

About

快速构建 swoole 的 php 环境 Ubuntu 20.04 / 21.10 以及 apple silicon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages