PHP Laravel Windows installation

Source: Internet
Author: User
Tags composer install

I want to do a whole set of laravel, so here is the Laravel in the Windows installation process to explain it.

I'm not going to 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. All the way next can be installed.

We can also install it through the Windows command-line tool.

-"readfile(‘https://getcomposer.org/installer‘);"| php

It is important to note that if your PHP does not open the OpenSSL extension, it is best to turn it on. Or try to change HTTPS to HTTP.

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

Just enter PHP in the command line without an error.

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

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

Why do we install the composer Package Manager? Because the Laravel downloaded on the official website is not with the Vender directory.

In fact, vender storage is our Laravel framework of the dependency package laravel/framework. These things can be passed on to our

Downloaded on the Packagelist website.

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

We can also download it on the official website of Laravel. Or we can go directly to GitHub to search for Laravel open source code, and then click on the downloaded ZIP package, unzip is also possible. Here I go directly to the official website to download.

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

I'm using XAMPP. So I put the Laravel folder in our Htdoc directory.

The command-line tool is then entered into the Laravel directory. Mine is: T:\xampp\htdoc\laravel

Then enter the command composer install

The installation of our vender can be done automatically at this time. About composer, as I have described 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 are 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.