A
A
Almaz Familia2021-02-17 12:50:43
Composer
Almaz Familia, 2021-02-17 12:50:43

Composer download error?

Hello !
I'm starting to learn Laravel from YouTube videos and I need to install Composer there.

php -r "copy(' https://getcomposer.org/installer ', 'composer-setup.php');"
php -r "if (hash_file ( ' sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') {echo 'Installer verified';} else {echo 'Installer corrupt'; unlink ( 'composer-setup. php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

This code must be inserted into the command line. When I do that, I get an error like: "php" is not an internal or external command.
And is composer installed in Openserver (by default) ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Georgy Eremeev, 2021-02-17
@GogElf

1. The error speaks for itself - windows does not know about php
2. Openserver seems to be yes, it is there by default.
Since you have Openserver, it has its own console in which there is already a php console command, and composer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question