Here are some simple instructions on how to get Composer working along your Web Station package for app/web development.
sudo su
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
All settings correct for using Composer Downloading... Composer (version 1.4.2) successfully installed to: /volume1/homes/adminuser/composer.phar Use it: php composer.phar
php73 ~/composer.phar
sudo cp composer.phar /usr/local/bin/composer
alias composer="/usr/local/bin/php73 /usr/local/bin/composer"
alias composer="/usr/local/bin/php73 /usr/local/bin/composer --ignore-platform-reqs"
sudo composer self-update
composer clear-cache
alias php='/usr/local/bin/php73'
composer global require laravel/installer
/var/services/homes/YOURUSERNAME/.composer/vendor/bin/laravel
sudo chown -R :http . sudo chmod -R g+r . sudo chmod -R g+rw public/.
php73 ~/composer.phar clear-cache php73 ~/composer.phar self-update php73 ~/composer.phar update --ignore-platform-reqs php73 ~/composer.phar install --ignore-platform-reqs
php73 ~/composer.phar require laravel/ui --ignore-platform-reqssudo npm install && sudo npm run devsudo php73 artisan ui vue --auth
If you have a Synology DiskStation and you have shared your public NAS link on…
Ubuntu initial setup does not do expand the virtual disk image to it's full size.…
A common issue that appeared with DSM 7 is that some well known containers started…
The Windows Sandbox image is useful for many test setups, but it lacks much of…
If you're used to Snip & Sketch for adding some scribbles placed over desktop screenshots,…
On some occasions Microsoft 365 Office applications might open a popup with "Contacting server for…
View Comments
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
I always get "Installer corrupt"
That's because the hash will change whenever they release a new version.
Use the updated code from https://getcomposer.org/download/ or just skip the hash_file line.
Thank you. I did, I missed the hash check.
unfortunately after php ~/composer.phar i get message: Could not open input file: /var/services/homes/siuta/composer.phar
If it installed, try using just 'composer' instead of 'php ~/composer.phar'