Development Tools
Using development tools
Composer
Install dependencies:
composer install
Add development dependency:
composer require --dev dependency-name
Add production dependency:
composer require dependency-name
Remove dependency:
composer remove dependency-name
Update dependencies:
composer update
Note: Normally only composer install is used to install dependencies.
NPM
Install dependencies:
npm install
Add development dependency:
npm install --save-dev dependency-name
Add production dependency:
npm install --save dependency-name
Remove dependency:
npm uninstall dependency-name
Update dependencies:
npm update
Note: Normally only npm install is used to install dependencies.
Git
View change status:
git status
Add changes:
git add .
Make commit:
git commit -m "Commit message"
Push changes to GitHub:
git push
Update local repository:
git pull
Undo changes:
git checkout -- .
Note: Instead of using dot ., you can specify the files you want to add, commit, or revert.
PHP CS Fixer
Check code style:
composer phpcs
Fix code style:
composer phpcs-fix
PHP Unit
Run unit tests:
composer tests
Using terminal in Docker container
Enter a website directory:
cd $SITES_DIR/www.example.com
Exit directory:
cd ..
List files:
ls -la
View file content:
cat $DEPLOYER_DIR/sites.php
Edit a file:
nano $DEPLOYER_DIR/sites.php
Save and exit in nano:
Ctrl + X
On this page
Last updated on 10/10/2026
by Anonymous