In Windows, Composer depends on the Controller to download the pure version of laravel and composerlaravel.

Source: Internet
Author: User

In Windows, Composer depends on the Controller to download the pure version of laravel and composerlaravel.

Install Composer:
Download composer. phar to the project and create composer. bat and composer. json in the same level directory.

In composer. bat, enter

@php "%~dp0composer.phar" %*

In composer. json, enter

{    "repositories": {        "packagist": {            "type": "composer",            "url": "https://packagist.phpcomposer.com"        }    }}

In composer. json: "url": "https://packagist.phpcomposer.com" is to jump to China mirror network, otherwise it will be wall.

If you do not create a composer. json file, you can also enter it in the bos (console ).

composer config -g repo.packagist composer https://packagist.phpcomposer.com

Jump to domestic Image

Global installation in the same directory of php.exe
Install the. phar file locally and copy it to a project.

Before downloading the file, go to the computer properties and execute the settings in the image below

Enter the location you want to save in bos.

composer create-project laravel/laravel blog --prefer-dist
Where
Laravel/laravel is what I haven't figured out yet
You can change the file name that is saved in the blog.
-- Prefer-dist enables composer to greatly accelerate the installation speed (I am also familiar with this, so please check the information when using this. If you are clear, please reply to me. Thank you)

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.