Home - novice-webtek/PHP GitHub Wiki

PHP Notes:

Most Common Array functions to use: https://vegibit.com/php-array-functions/

**** Update composer version **** https://blog.laravel.com/upgrading-to-composer-v2 To update composer from version 1 to version 2

  • composer self-update --2

to revert or rollback

  • composer self-update --1

Update PHP version in MAc with brew The best way is install Homebrew, and then in your terminal, write this:

$ brew upgrade php // upgrade php formula $ brew install [email protected] $ brew link [email protected] // create an alias to this keg-only version; see comments output during installation $ echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile // add the alias to your path; see comments output during installation $ source ~/.bash_profile // reload .bash_profile to use the new settings immediatel


https://getgrav.org/blog/macos-bigsur-apache-multiple-php-versions HomeBrew and Mac stuff