Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created September 29, 2023 16:54

Revisions

  1. yasudacloud created this gist Sep 29, 2023.
    12 changes: 12 additions & 0 deletions sakura_setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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