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

composer ins

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

composer for windows

Composer for Windows

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

composer install --

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

PREVIOUS NEXT
Code Example
Shell :: /usr/bin/env: ‘bash ’: No such file or directory 
Shell :: how to run .sh file in background linux 
Shell :: install make 
Shell :: how to get file manager in vestacp 
Shell :: powershell convert to exe 
Shell :: ! [remote rejected] main - main 
Shell :: comprimir carpeta linux comando 
Shell :: requirements.txt conda 
Shell :: windows docker volume location 
Shell :: bash escape special characters in variable 
Shell :: git ignore folder except one file 
Shell :: cancel rebase git 
Shell :: navigate to folder macq 
Shell :: virtualbox kernel driver not installed ubuntu 
Shell :: linux delete files older than specific date 
Shell :: htaccess deny all but 
Shell :: grep not multiple patterns 
Shell :: why jupyter notebook suggestions not showing after upgrade 
Shell :: how to get last in array jq 
Shell :: remove git repository 
Shell :: create strapi app 
Shell :: Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at localhost Port 80 
Shell :: vagrant run paralel 
Shell :: linux curl follow redirect 
Shell :: git clone with subrepos 
Shell :: install composer package from github 
Shell :: wp gitignore 
Shell :: kubernetes shell into pod 
Shell :: Pterodactyl wings update 
Shell :: how to install lvm2 on ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =