Skip to content

Instantly share code, notes, and snippets.

View arvinesmaeily's full-sized avatar

Arvin Esmaeily arvinesmaeily

View GitHub Profile
@arvinesmaeily
arvinesmaeily / Laravel_Global_Installer.sh
Last active September 19, 2021 21:30
Laravel Global Installer (Including PHP, Composer and PHP extensions)
#!/bin/sh
sudo apt-get update && apt-get upgrade
sudo apt-get install php
sudo apt-get install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"