Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install a project in composer

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to install the project in composer. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

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

two。 After downloading, double click to install, press next next step without instructions

Choose your php version here

When you are finished, open cmd and type composer to see the effect.

3. To start using Composer in your project, you need a composer.json file

Create a new composer.json under the www directory and write {}

Then cmd to the current directory and execute composer config repo.packagist composer https://packagist.phpcomposer.com

If the following picture occurs, go to php.ini to modify the configuration and open ssl.

/ / remove the extension=php_openssl.dll in front of this line of code

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 to create a project in its own project directory. It will take a long time to install on the computer for the first time, and it will not be completed until the following figure is shown.

If you encounter something that git cannot run, go to https://git-scm.com/downloads to download git and install it, and then configure the environment variables of git

4. Download the installation package

Laravel: https://github.com/laravel/laravel

Enable the php extension

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

Extension=php_openssl.dll

Extension=php_mbstring.dll

Extension=php_pdo_mysql.dll

Open the following in httpd.conf

1.LoadModule rewrite_module modules/mod_rewrite.so

2.LoadModule vhost_alias_module modules/mod_vhost_alias.so

3.Include conf/extra/httpd-vhosts.conf

4.

5.

(1) give others access to your laravel project: finish executing 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

If you only want to access it locally, you can php artisan serve directly, and then you don't need an ip address, just http://127.0.0.1:8000/ directly.

This is the end of the article on "how to install the project in composer". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report