{"repo":"philcook/brew-php-switcher","free":true,"listed":false,"github":"https://github.com/philcook/brew-php-switcher","clone":"git clone https://github.com/philcook/brew-php-switcher.git","description":"Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.","language":"Shell","stars":1007,"topics":["homebrew","php","shell"],"license":"MIT","category":"cli-tools","readme_excerpt":"Brew 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. Brew PHP Switcher will automatically add the [Homebrew]'s PHP module location in the Apache config in the following format. Version ---- 2.3 Installation -------------- 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. by default will switch apache config Options -------------- - -s -s= Skips apache & valet config switch for i.e - -c= switch a specific config for i.e License ---- MIT [Homebrew]:http://brew.sh/ [@p cook]:http://twitter.com/p cook","default_branch":null,"files":null,"tree":[],"storefront":"/r/philcook","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/philcook/brew-php-switcher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}