Skip to content

Installing Composer

Boinkers edited this page Jan 31, 2018 · 11 revisions

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

Clone this wiki locally