Windows composer dependent controller download pure version Laravel

Source: Internet
Author: User

Install Composer:
Download Composer.phar to the project, create Composer.bat and Composer.json in the sibling directory

Enter in Composer.bat

@php "%~dp0composer.phar"%*

Enter in Composer.json

 {  " repositor IES   : { "  packagist   "  : {  type  " :  " composer  "    " url   ": "  https://packagist.phpcomposer.com   " }}}  

Composer.json: "url": "https://packagist.phpcomposer.com" is to jump to the Chinese mirror network, otherwise it will be wall.

If you do not create a Composer.json file, you can enter it in the BOS (console)

Composer Config-g Repo.packagist composer https://packagist.phpcomposer.com

Jump to Domestic mirror

The global installation is installed in the Php.exe sibling directory
Copy a locally installed. Phar File to a project

Before downloading the file will go to the computer properties to perform the settings in the picture below

Enter the location you want to save in BOS after completion

Composer Create-project Laravel/laravel Blog--prefer-dist
which
Laravel/laravel, I haven't figured out what it is yet.
A blog is a saved file name that can be changed by itself
--prefer-dist let composer this will greatly speed up the installation speed (this I also smattering, so in this case, please check the information.) If it is clear, please reply me. Thank

Windows composer dependent controller download pure version Laravel

Related Article

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.