Installation / Update via Composer
Composer is a dependency management tool for PHP projects. It allows you to declare the libraries your project requires and installs/updates them for you.
View the following links to learn how to install Composer:
How to install composer on Linux/MacOS
How to install composer on Windows
Simply use this bash script for installation:
#!/bin/sh EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] then >&2 echo 'ERROR: Invalid installer signature' rm composer-setup.php exit 1 fi php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer RESULT=$? rm composer-setup.php exit $RESULT
You need to put this script to composerinstall.sh file on the magento host, add permissions for execution and then start script.
Installation process might look like this:
Aitoc Extensions installation via composer
Open the terminal and establish an SSH connection to your server: