Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

insatll php composer

//php composer versionv2.4.4

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;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
 
//move composer.phar to bin dir
sudo mv composer.phar /usr/local/bin/composer

//update composer
composer self-update
Comment

installing composer command line

Installing composer commandline
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

how to install composer package manually php

# this is cause not spesific version or not have release package
# you can use this command

composer require metaregistrar/php-dns-client:dev-master
Comment

where do you install composer

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

PREVIOUS NEXT
Code Example
Shell :: docker save 
Shell :: gcc 7 install ubuntu 
Shell :: install aws cli on windows 
Shell :: styled typescript 
Shell :: kill force linux 
Shell :: docker install linux 
Shell :: gcloud set kubectl context 
Shell :: grep ignore binary file 
Shell :: how to update forked repo in github 
Shell :: npm install in dev mode 
Shell :: install docker in kali linux 
Shell :: linux modem manager 
Shell :: windows 10 path to wsl 
Shell :: install pgadmin4 ubuntu 20.04 
Shell :: install react-native-community hooks 
Shell :: how to check directory size in linux 
Shell :: git get develop changes to my branch 
Shell :: turn redis off 
Shell :: how to install .sh file in ubuntu 
Shell :: git delete remote name 
Shell :: make pip3 pip 
Shell :: scikit-learn python 
Shell :: git project root 
Shell :: unix cp all files and folders at once 
Shell :: check if service is running server 
Shell :: install specific version of node 
Shell :: dump database docker 
Shell :: vadersentiment pip install 
Shell :: git how to update branch from master 
Shell :: how to run .sh script in mac 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =