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)