V
V
Vlad2018-04-21 13:05:50
Composer
Vlad, 2018-04-21 13:05:50

How to install Laravel?

I am new to PHP. Openserver is installed on the computer.
I don’t understand how to install Laravel https://laravel.ru/posts/419
I don’t understand where all these commands are entered at all

curl -sS https://getcomposer.org/installer | php
php composer.phar
mv composer.phar /usr/local/bin/composer
mv laravel.phar /usr/local/bin/laravel

Well, or I downloaded Composer and installed it via .exe on Windows. How to run it now to install Laravel?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jedi, 2018-04-21
@Sc0undRel

Hello Vlad.
Composer to install on Windows for me was dancing with a tambourine. As far as I understand, you need to install it twice, and only after that the composer will work.
This is from personal experience.
Do you know how to use the command line?
Open start, enter cmd and "Command line" will appear there. Then you can enter composer -v
for the test , if everything is installed correctly, then this data should appear. Composer is already installed in OpenServer... You can not install via composer.exe To run composer from openServer, the steps are as follows:
Then the console will open, it looks like this:
To install the Laravel framework in the Domains folder, the steps are as follows:
Enter the following commands in the command line:
cd /domains - go to the Domains folder
composer create-project --prefer-dist laravel/laravel blog - Install Laravel ! blog is the name of the folder where Laravel will be.
And then on their own.
In the last screenshot, the framework is being installed.
I hope I could be of some help to you.
Good luck!

I
ipokos, 2018-04-21
@ipokos

Composer is already pre-installed in openserver. Launch the openserver console, enter commands into it. Of. link to install
Are you sure that you came to the question from the right end?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question