PHP laravel Windows installation

Source: Internet
Author: User
Tags command line composer install git clone

I want to do a whole set of laravel, so here's how to explain Laravel's installation process in Windows.

I will not say it under 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 our installation package on Windows. You can install it all the way next.

We can also install it through Windows command-line tools.

php -r "readfile('https://getcomposer.org/installer');"  php

Note here, if your PHP does not open OpenSSL expansion, it is best to open. Or try to change HTTPS to HTTP.

Of course, the premise is that your computer has been installed PHP, such as the installation of XAMPP or Wamp and so on.

Just enter PHP in the command line without an error.

After the installation is complete, let's try it. Enter composer directly on the command line,

If the composer command-line help appears, the installation succeeds.

Why do we have to install the composer Package Manager? Because the Laravel on the official website is not with vender directory.

In fact vender is stored in our Laravel framework of the dependent package laravel/framework. These things can be passed to our

Download on the Packagelist website.

Here we go to install the laravel. There are many ways to install Laravel. You can download it via git clone

We can also download it from the official website of Laravel. Or we can go directly to the github above search Laravel open source code, and then click on downloading Zip package, decompression is also possible. Here I downloaded it directly to the official website.

After the download is complete, unzip to our server's more directory.

I'm using XAMPP, so I'll put the Laravel folder in our Htdoc directory.

The command line tool is then used to enter the Laravel directory. Mine is: T:\xampp\htdoc\laravel

Then enter the command composer install

At this point, we can automatically install the vender. About composer, I had an introduction in a previous blog post.

Composer--php Package management tool

Once the installation is complete, we can enter it directly in the browser

Localhost/laravel/public can see our laravel welcome interface.

Well, I'm a little tired today. Just write it down here.

Whatever is worth doing is worth doing.

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.