Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

composer

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

--ignore-platform-reqs
Comment

composer

#!/bin/sh

EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"

if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
then
    >&2 echo 'ERROR: Invalid installer checksum'
    rm composer-setup.php
    exit 1
fi

php composer-setup.php --quiet
RESULT=$?
rm composer-setup.php
exit $RESULT
Comment

php Composer

composer create-project laravel/laravel folder_name
composer install
composer update
composer dump-autoload [--optimize]
composer self-update
composer require [options] [--] [vender/packages]...
Comment

composer

composer create-project laravel/laravel appname

cd appname  

composer require laravel/jetstream  
  
php artisan jetstream:install inertia                            

php artisan migrate 
  
npm install  

php artisan serve

npm run dev

valet park
Comment

PREVIOUS NEXT
Code Example
Shell :: install from package.json 
Shell :: remove file from commit 
Shell :: gitignore all files and folders in only one folder 
Shell :: git force push after reset 
Shell :: git add current directory 
Shell :: how to delete a file in linux 
Shell :: how to install mvnw 
Shell :: xbox 360 wireless adapter linux 
Shell :: bash read 
Shell :: linus display ORACLE_HOME 
Shell :: ubuntu delete folder 
Shell :: how to append string to file names in linux 
Shell :: umask examples 
Shell :: copy data to kubernetes pod 
Shell :: sed from start to match 
Shell :: nvim config path 
Shell :: install neovim 7 in ubuntu 
Shell :: waiting for your editor to close the file 
Shell :: update composer 
Shell :: install scrapy 
Shell :: better wget 
Shell :: how to add text to promt in linux 
Shell :: how to solve the brightness problem on unbuntu 
Shell :: how to update or upgrade sql server on ubuntu 
Shell :: mariadb delete database 
Shell :: execution policy powershell single script 
Shell :: create vue app locally 
Shell :: powershell qr code generator 
Shell :: git config pull with prune 
Shell :: ubuntu enable ssh 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =