How to swop between different PHP versions on an Apple Mac
Follow the procedure in blue: ➜ project git:(master) php -v
Follow the procedure in blue: ➜ project git:(master) php -v
This is not possible and nicely explain here below: “As of now, you cannot update a package name, I believe for security reasons (if renaming
Create a new repository on the command line echo “# github-new-repo-template” >> README.md git init git add README.md git commit -m “first commit” git branch
This is the format: composer require vendor/package:version Reference https://stackoverflow.com/questions/40914114/how-to-install-a-specific-version-of-package-using-composer
Recently I decided to switch my IDE from the amazing Visual Studio code back to PhpStorm which was my preferred IDE of choice for years.
Here are some of the most used key combinations and plugins we like for Visual Studio Code Collapse Outline <Ctrl> + <LeftArrow> will collapse the entire list
Background At times you might want to avoid certificate checking when developing a PHP application and using file_get_contents. If file_get_contents can’t work the the certificate
Background At times you might want to avoid certificate checking when developing a WordPress application. This could especially be true when you are developing on
PHP debugging can involve outputting to a log file. Although modern frameworks like Laravel has this baked in, sometimes you just want something short and
Description Here is a code snippet to work out the date of the last Sunday: echo date(‘Y-m-d’,strtotime(‘last sunday’)); Reference https://stackoverflow.com/questions/15196587/get-last-sunday-date-in-php/15196691