philcook/brew-php-switcher
소개
Brew PHP switcher는 Apache와 CLI에서 사용하는 PHP 메이저 버전을 빠르게 전환할 수 있는 간단한 셸 스크립트입니다. 최신 PHP 기능과 오래된 레거시 PHP 기능으로 구축된 여러 제품이나 프로젝트를 지원할 때 사용할 수 있습니다. 현재는 Homebrew(줄여서 brew) 사용자만 지원합니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalBrew PHP Switcher 
Brew PHP switcher is a simple script to switch your Apache and CLI configs quickly between major versions of PHP.
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 users of OSX only who have installed PHP via Homebrew and for PHP version 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 and 8.0 only.
Your Apache config must have native osx PHP module commented out.
#LoadModule php5_module libexec/apache2/libphp5.so
Brew PHP Switcher will automatically add the Homebrew's PHP module location in the Apache config in the following format.
#LoadModule php5_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp5.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp8.so
Version
2.3
Installation
brew install brew-php-switcher
Where 5.6 exists, please replace with syntax of 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 or 8.5 depending on which version is required.
brew-php-switcher 5.6
by default will switch apache config
Options
-s|-s=*Skips apache & valet config switch for i.e
# skip apache only
brew-php-switcher 5.6 -s
# skip valet only
brew-php-switcher 5.6 -s=valet
# skip valet & apache
brew-php-switcher 5.6 -s=valet,apache
-c=*switch a specific config for i.e
# switch valet config only
brew-php-switcher 5.6 -c=valet
# switch valet & apache config only
brew-php-switcher 5.6 -c=valet,apache
# switch apache config only
brew-php-switcher 5.6 -c=apache
License
MIT
관련 프로젝트 살펴보기
불러오는 중…