Install php Laravel in windows

Source: Internet
Author: User
Tags composer install

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.