Skip to content

Instantly share code, notes, and snippets.

@HDDen
Created June 26, 2024 13:35
Show Gist options
  • Save HDDen/dbcf817c9248d6172dae4f15e1935006 to your computer and use it in GitHub Desktop.
Save HDDen/dbcf817c9248d6172dae4f15e1935006 to your computer and use it in GitHub Desktop.
composer
cd /site.com/public_html/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
php composer.phar require drupal/smtp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment