Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

composer install

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

#move composer.phar, so you can call composer command
sudo mv composer.phar /usr/local/bin/composer

#update composer to latest version
composer self-update
Comment

composer install

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/bin --filename=composer
php -r "unlink('composer-setup.php');"
Comment

install composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Comment

download composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Comment

install composer

sudo apt install composer
Comment

composer for windows

Composer for Windows

https://getcomposer.org/Composer-Setup.exe
Comment

composer install

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Comment

windows install composer

Just to download
https://getcomposer.org/download/
Comment

Install composer

//Update your packages:
sudo apt-get update

//Install Curl to get the composer library:
sudo apt-get install curl

//Installing composer:
sudo curl -s https://getcomposer.org/installer | php

//Move the composer file to bin path :
sudo mv composer.phar /usr/local/bin/composer

//Verify composer installation :
composer
Comment

where do you install composer

// Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar
Comment

composer install --

composer require tymon/jwt-auth --ignore-platform-reqs
Comment

install composer

Purge existing composer v1

sudo apt purge composer

Download composer-setup v2

curl -sS https://getcomposer.org/installer -o composer-setup.php

Use php to install Composer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

Check Composer Version
composer -V
Comment

composer download

Composer Linux Mint 19.3
Comment

PREVIOUS NEXT
Code Example
Shell :: Git Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
Shell :: needs merge error: you need to resolve your current index first 
Shell :: Compress files powershell 
Shell :: pull from dev branch to master 
Shell :: sudo !! alias 
Shell :: microk8s enable dns 
Shell :: heroku push alternative branch 
Shell :: running file pug 
Shell :: Endpoint Security VPN build 986000724 is already installed on this computer. 
Shell :: install wordpress in windows 10 
Shell :: how to uninstall global babel jest npm 
Shell :: bash remove first and last quotes 
Shell :: windows commandline zip 
Shell :: How to install NodeJs in CentOs? 
Shell :: syntax error: unexpected end of file bash 
Shell :: modify file modified time linux 
Shell :: bash if statement 
Shell :: Invalid base64 sqs 
Shell :: configurer kdiff3 
Shell :: count lines in bash script 
Shell :: if output is null bash 
Shell :: github update personal access token 
Shell :: linux add prefix to all files 
Shell :: check service status in linux 
Shell :: download bash 
Shell :: composer install from local directory 
Shell :: delete missing files from svn 
Shell :: compiling c 
Shell :: how to silence operation not permitted 
Shell :: failed to push some refs to 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =