I want to give a complete set of Laravel explanations, so here I will explain the installation process of Laravel in windows.
I will not talk about it in linux.
The first thing we need to do is install our Composer Package Manager.
Go to our official website.
Https://getcomposer.org/Composer-Setup.exe
This is the installation package on windows. You can install it all the way to next.
At the same time, we can install it using the windows command line tool.
php -r "readfile('https://getcomposer.org/installer');" | php
Note that if openssl extensions are not enabled for your php, you 'd better enable or try to change https to http.
Of course, the premise is that you have installed php on your computer, such as xampp or wamp.
If you enter php in the command line, no error is reported.
After the installation is complete, let's try it. Enter composer directly in the command line,
If the command line help of composer appears, the installation is successful.
Why do we need to install the composer Package Manager? Because laravel downloaded from the official website does not contain the vender directory.
In fact, vender stores our laravel framework dependency package laravel/framework.
Packagelist.
Next we will start to install laravel. There are many ways to install laravel. You can download it through git clone.
We can also download it from laravel's official website. alternatively, you can search for laravel open source code on github and click to download the zip package to decompress the package. I downloaded it directly on the official website.
After the download is complete, decompress the package to a directory on our server.
I am using xampp, so I put the laravel folder under our htdoc directory.
Then run the command line tool to go to The laravel directory. my options are T: \ xampp \ htdoc \ laravel.
Then enter the command composer install
In this case, we can automatically install our vender. For composer, I have introduced it in a previous blog.
Composer-php package management tool
After the installation is complete, you can enter
Localhost/laravel/public can see the welcome interface of laravel.
Okay. I'm a little tired today. Just write it here.
Whatever is worth doing well.
Best Wishes.