Composer
Composer is a PHP package manager.
Installation
sudo zypper install php-composer
Add bin to PATH
Composer can install global executable to user's home directory, but they are not in $PATH. If you want to execute these scripts directly by typing their name in terminal, modify ~/.profile
and add following lines:
# Add path to Composer
export PATH=~/.config/composer/vendor/bin:$PATH
You need to quit current terminal and reopen it to apply the change.
Manage global packages
# Install global package
composer global require "some-vendor/some-package"
# Update global package
composer global update "some-vendor/some-package"
# Uninstall global package
composer global remove "some-vendor/some-package"