Introduce the composer installation project steps and download the project installation package

藏色散人
Release: 2020-09-10 09:12:46
forward
3459 people have browsed it

Introduce the composer installation project steps and download the project installation package


Introduce the composer installation project steps and download the project installation package
Introduce the composer installation project steps and download the project installation package


Introduce the composer installation project steps and download the project installation package

Introduce the composer installation project steps and download the project installation package
# Steps and project installation package download, I hope it will be helpful to friends in need!

1. Enter the Chinese mirror: http://www.phpcomposer.com/ and click to download

Introduce the composer installation project steps and download the project installation package

2 .After the download is completed, double-click to install. If there is no explanation, just press next.

Select your php version hereIntroduce the composer installation project steps and download the project installation package

After completion, open cmd and enter composer to see the effect

3. To start using Composer in your project, you need a composer.json file
Create a new composer.json in the www directory and write {}Introduce the composer installation project steps and download the project installation packageThen cmd to the current directory and Execute

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


Introduce the composer installation project steps and download the project installation packageIf the situation shown below appears, enter php.ini and modify the configuration to open ssl

//将这行代码前的 ; 去掉
extension=php_openssl.dll
Copy after login




Note: It is best to add a Chinese image, click Add

Finally you can use

composer create-project yiisoft/yii2-app- basic yii2 2.0.7 --prefer-dist
Create a project in your own project directory. The first installation on the computer will take a long time, and it will not be completed until the following picture is displayed



If you encounter git that cannot run, go to https://git-scm.com/downloads to download and install git, and then configure the git environment variablesIntroduce the composer installation project steps and download the project installation package

4. Installation package Download laravel: https://github.com/laravel/laravel
Enable php extension

php.ini: C:\wamp\bin\php\php5.5.12\php.ini

extension=php_openssl.dllextension=php_mbstring.dllextension=php_pdo_mysql.dllEnable the following in httpd.conf

1.LoadModule rewrite_module modules/mod_rewrite.so2.LoadModule vhost_alias_module modules/mod_vhost_alias.so###3.Include conf/extra/httpd-vhosts.conf###4.#########5.###(1) Let others access Your laravel project: After execution###php artisan serve --host 0.0.0.0######Other users can access your laravel project by accessing your IP###
http://192.168.96.101:8000
Copy after login
###If you only need to be local To access, just use ###php artisan serve###, and you don’t need an IP address, just use ###http://127.0.0.1:8000/#########

The above is the detailed content of Introduce the composer installation project steps and download the project installation package. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template