Skip to content

Instantly share code, notes, and snippets.

@chuprik
Last active April 24, 2016 07:23
Show Gist options
  • Save chuprik/42e6115b2d1a0e584bbbc4d5ff3124bf to your computer and use it in GitHub Desktop.
Save chuprik/42e6115b2d1a0e584bbbc4d5ff3124bf to your computer and use it in GitHub Desktop.
One command composer install
#!/bin/bash
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash_file('SHA384', 'composer-setup.php') === '7228c001f88bee97506740ef0888240bd8a760b046ee16db8f4095c0d8d525f2367663f22a46b48d072c816e7fe19959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
@chuprik
Copy link
Author

chuprik commented Apr 24, 2016

curl https://gist.githubusercontent.com/kotchuprik/42e6115b2d1a0e584bbbc4d5ff3124bf/raw/01777a1b152c76d3acac5a26ca420b3c527de21f/install-composer.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment