-
-
Notifications
You must be signed in to change notification settings - Fork 54
Installing Composer
Now it is time to install Composer.
We recommend the global method, as we do not provide the composer.phar file in our repo.
NOTE Commands below assume you followed the getComposer site's instructions and renamed composer.phar to composer.
You can use the following to install composer globally:
cd /var/www
sudo chmod 777 .
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r 'if (hash_file("SHA384", "composer-setup.php") === preg_filter("#^.*?<pre>|</pre>.*$#s", "", file_get_contents("https://composer.github.io/pubkeys.html"))) { echo "Installer verified"; } else { echo "Installer corrupt"; unlink("composer-setup.php"); } echo PHP_EOL;'
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
composer -V
You are now ready to download NNTmux using git:
cd /var/www/
git clone https://github.com/NNTmux/newznab-tmux.git NNTmux
cd /var/www/NNTmux
If you want to be on stable branch:
git checkout 0.x
or on dev:
git checkout dev