Similarly, using Node Version Manager has been a breeze for switching between versions of NodeJS. This has made testing new PHP features and staying up to date with package requirements easy. Now if I want to switch to a different PHP version, I just type phpswitch 8.2 into my terminal and I’m up and running with 8.2.x. bash_aliases file: # PHP version management for Homebrew PHP Since those commands are hard to remember, I’ve created a few bash functions and put them in my. There are installation instructions in the Github repo, as well as commands for downloading, upgrading, and changing PHP versions. I’ve been using Homebrew PHP for a bit now and really like how easy it is to get, use, and upgrade different PHP versions. Note: I’m on a Mac, so these are what I use. We tend to have vertualized environments for this kind of thing, but if you’re looking to install and easily switch between local versions versions of a language you’re running, these two repositories might be helpful. Some systems come with languages installed on them (I tend to work on a Mac), but they usually come with a single version, and there isn’t a UI or straightforward way to update them. However, with server-side languages (like PHP, NodeJS, Python, Go, etc.), there’s a little more nuance. Browser JavaScript is fairly straightforward: use the browser, make sure it’s updated, etc. When working on projects with your local computer, it’s essential to be able to test new versions of the languages you’re using.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |