Skip to content

Instantly share code, notes, and snippets.

@kaanra
Created November 7, 2023 17:16
Show Gist options
  • Save kaanra/157e049a83be6b29f5f495ca25274ae3 to your computer and use it in GitHub Desktop.
Save kaanra/157e049a83be6b29f5f495ca25274ae3 to your computer and use it in GitHub Desktop.
[Statamic 2 PHP 7.4 + Homebrew PHP]

Homebrew How to Switch Local PHP Version

Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link php@7.4 --force --overwrite && php -v

Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink php@7.4 && brew link php --force --overwrite && php -v

Check the PHP version with php -v


Statamic 2 Clear Command

php please clear:stache

php please clear:static

php please clear:cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment