Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created September 29, 2023 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasudacloud/78554b5bcfd7a34b0a4bb2890c8684d1 to your computer and use it in GitHub Desktop.
Save yasudacloud/78554b5bcfd7a34b0a4bb2890c8684d1 to your computer and use it in GitHub Desktop.
cd ~/www
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mkdir -p ~/bin
mv composer.phar ~/bin
bash
composer create-project laravel/laravel example-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment