CLI
There are a few command line tools that we often use at Built By Cactus, therefore will need to be installed.
Composer
Composer is a dependency manager for PHP and allows us to install other PHP packages that we may rely on as and when we need them, without having to store them within our GIT repository.
Details for installation and usage can be found at https://getcomposer.org/
PHPUnit
PHPUnit is a programmer-oriented testing framework for PHP. This allows us to write tests for our code, so we can make sure we don’t introduce any unwanted bugs or break functionality later down the line.
The PHPUnit installation instructions can be found at https://phpunit.de/ or it can also be installed through composer
composer require --dev phpunit/phpunit ^9
./vendor/bin/phpunit --version
# PHPUnit 9.0.0 by Sebastian Bergmann and contributors.
Node.js / npm
Npm makes it easy for JavaScript developers to share and reuse code, and makes it easy to update the code that you’re sharing, so you can build amazing things.
Npm is installed with Node.js by default and can be downloaded from https://www.npmjs.com/get-npm
NVM
The Node Version Manager (NVM) is a simple bash script to manage multiple active node.js versions.
This is useful when we need to switch to a different version of node.js for a project.
Install instructions can be found at https://github.com/nvm-sh/nvm#installing-and-updating
Yarn
Yarn is a dependency management system from JavaScript and CSS. It works with your node.js packages and allows a team to keep its dependencies at the same level.
Installation details can be found at https://yarnpkg.com/getting-started