All Projects → shivammathur → Homebrew Php

shivammathur / Homebrew Php

Licence: other
🍺 Homebrew tap for PHP 5.6 to 8.1. PHP 8.1 is a nightly build.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Homebrew Php

Libnx
Library for Switch Homebrew
Stars: ✭ 908 (+198.68%)
Mutual labels:  arm64, homebrew
Mockserver
MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and…
Stars: ✭ 3,479 (+1044.41%)
Mutual labels:  homebrew
Homebrew File
Brewfile manager for Homebrew
Stars: ✭ 260 (-14.47%)
Mutual labels:  homebrew
Aio Switch Updater
All-in-One Nintendo Switch Updater
Stars: ✭ 272 (-10.53%)
Mutual labels:  homebrew
Homebrew Zathura
Homebrew formulae to build Zathura on Mac OS X
Stars: ✭ 261 (-14.14%)
Mutual labels:  homebrew
Homebrew Avr
Homebrew AVR Toolchain
Stars: ✭ 294 (-3.29%)
Mutual labels:  homebrew
Golinks
🌐A web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub.
Stars: ✭ 258 (-15.13%)
Mutual labels:  homebrew
Whalebrew
Homebrew, but with Docker images
Stars: ✭ 3,352 (+1002.63%)
Mutual labels:  homebrew
Brewlet
The missing menulet for brew.sh: keeping your packages up-to-date, and your system secure.
Stars: ✭ 298 (-1.97%)
Mutual labels:  homebrew
Edizon cheatsconfigsandscripts
The official EdiZon Editor Config and Editor Script repository.
Stars: ✭ 271 (-10.86%)
Mutual labels:  homebrew
Raspberry Pi Cross Compilers
Latest GCC Cross Compiler & Native (ARM & ARM64) CI generated precompiled standalone toolchains for all Raspberry Pis. 🍇
Stars: ✭ 261 (-14.14%)
Mutual labels:  arm64
Install nodejs and yarn homebrew
The guide for installing nvm | node | yarn via homebrew
Stars: ✭ 261 (-14.14%)
Mutual labels:  homebrew
Homebrew Cask Drivers
🖨 Casks of Drivers
Stars: ✭ 295 (-2.96%)
Mutual labels:  homebrew
Deepc
vendor independent deep learning library, compiler and inference framework microcomputers and micro-controllers
Stars: ✭ 260 (-14.47%)
Mutual labels:  arm64
Pharos Cluster
Pharos - The Kubernetes Distribution
Stars: ✭ 302 (-0.66%)
Mutual labels:  arm64
Homebrew Postgresql
🐘 PostgreSQL formulae for the Homebrew package manager
Stars: ✭ 258 (-15.13%)
Mutual labels:  homebrew
Rust Psp
Rust on PSP. Panic and allocation support. Access PSP system libraries.
Stars: ✭ 265 (-12.83%)
Mutual labels:  homebrew
Luma3ds
Noob-proof (N)3DS "Custom Firmware"
Stars: ✭ 3,313 (+989.8%)
Mutual labels:  homebrew
Devmymac
✨ ✨ A Simple Tool To Setup A Mac for Development✨✨
Stars: ✭ 312 (+2.63%)
Mutual labels:  homebrew
Mac Dev Playbook
Mac setup and configuration via Ansible.
Stars: ✭ 4,202 (+1282.24%)
Mutual labels:  homebrew

Homebrew Tap for PHP

brew tap shivammathur/php

Build status LICENSE PHP Versions Supported macOS architectures supported macOS architectures supported

PHP Support

PHP Version Formula
PHP 5.6 [email protected]
PHP 7.0 [email protected]
PHP 7.1 [email protected]
PHP 7.2 [email protected]
PHP 7.3 [email protected]
PHP 7.4 [email protected]
PHP 8.0 php or [email protected]
PHP 8.1.0-dev [email protected]

OS Support

Operating System Architecture
macOS Catalina x86_64
macOS Big Sur x86_64, arm64

Usage

Prerequisites

  • Install Xcode Command Line Utilities
xcode-select --install
  • Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • If previously installed, update homebrew and the formulae:
brew update
  • If you have packages from old homebrew/php tap, refer to this guide for removing them.

Add this tap

Fetch the formulae in this tap:

brew tap shivammathur/php

Install PHP

See PHP Support for available formulae.

  • For example, to install PHP 7.4:
brew install shivammathur/php/[email protected]
  • After installing your have to link it:
brew link --overwrite --force [email protected]
  • Restart the terminal and test your PHP version:
php -v

Upgrade your PHP version

You can upgrade your PHP version to the latest patch release.

For example, to upgrade PHP 7.4:

brew upgrade shivammathur/php/[email protected]

Switch between PHP versions

  • If you have multiple PHP versions installed, you can switch between them easily.

For example, to switch to PHP 7.4:

brew link --overwrite --force [email protected]
  • If you get a warning like below, then do as recommended:
Warning: Already linked: <Cellar Path>
To relink:
  brew unlink <formula> && brew link <formula>
brew unlink [email protected]
brew link --overwrite --force [email protected]

Restart your webserver

If you are using Apache or Nginx with php-fpm, restart your webserver after any change in your PHP.

  • For Apache (httpd):
brew services restart httpd
  • For Nginx:
brew services restart nginx

Debugging

  • Make sure you ran brew update before installing PHP.

  • Run brew doctor and fix the warnings it reports.

  • Make sure homebrew has correct permissions.

sudo chown -R "$(id -un)":"$(id -gn)" $(brew --prefix)
  • If PHP is not working after a macOS update. Reinstall PHP along with its dependencies.

For example to reinstall PHP 7.4 and its dependencies:

brew reinstall $(brew deps shivammathur/php/[email protected]) shivammathur/php/[email protected]
  • Check if your issue is a Homebrew's common issue.

  • If you are still facing an issue, please create a discussion thread here.

License

The 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.

Contributions

Contributions 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.

Related Projects

Dependencies

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].