Hướng dẫn shivammathur php
Jump to bottom Show Shivam Mathur edited this page Nov 12, 2021· 2 revisions Pages 2
Clone this wiki locallyRemove PHP packages
rm -rf $(brew --cellar)/php
rm -f ~/Library/LaunchAgents/homebrew.mxcl.php* rm -f /Library/LaunchAgents/homebrew.mxcl.php* rm -f /Library/LaunchDaemons/homebrew.mxcl.php*
brew untap homebrew/php
brew untap exolnet/deprecated
brew cleanup
PHP Support
Debug versionsFor each PHP version there is an extra formula with debug symbols enabled. This version can be used when building or debugging PHP extensions and are not recommended for production usage. OS Support
UsagePrerequisites
# Using APT sudo apt-get install -y curl git # Using Yum sudo yum install -y curl git
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Add this tapFetch the formulae in this tap: brew tap shivammathur/php Install PHP
brew install shivammathur/php/
brew link --overwrite --force shivammathur/php/
Upgrade your PHP versionYou can upgrade your PHP version to the latest patch release. For example, to upgrade brew upgrade shivammathur/php/ Switch between PHP versions
For example, to switch to brew link --overwrite --force shivammathur/php/
Warning: Already linked: <Cellar Path> To relink: brew unlink <formula> && brew link <formula> brew unlink brew link --overwrite --force shivammathur/php/ Restart your webserverIf you are using
brew services restart httpd
brew services restart nginx Debugging
sudo chown -R "$(id -un)":"$(id -gn)" $(brew --prefix)
For example to reinstall brew reinstall $(brew deps shivammathur/php/) shivammathur/php/
LicenseThe code in this project is licensed under the MIT license. Please see the license file for more information. This project has some dependencies, and their license can be found here. ContributionsContributions are welcome! Please see Contributor's Guide before you start. If you face any issues while using this tap or want to suggest a feature/improvement, create an discussion thread here. SponsorsIn addition to GitHub Actions, we use MacStadium and Scaleway for our CI infrastructure. This project is generously supported by many other users and organisations via GitHub Sponsors. Related Projects
Dependencies
|