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

What are the methods of composer installation

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is to share with you about the methods of composer installation. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Two ways to install composer

Partial installation (valid only in specific projects)

Curl-sS https://getcomposer.org/installer | php

/ / if there are various errors in running the above command, run the following command

Php-r "readfile ('https://getcomposer.org/installer');" | php

You can also use "- install-dir=" to specify the installation directory of composer

Curl-sS https://getcomposer.org/installer | php-install-dir=bin

Global installation (can take effect anywhere on the machine)

Curl-sS https://getcomposer.org/installer | php / / get composermv composer.phar / usr/local/bin/composer composer / / run composer directly

If composer still cannot be executed anywhere, you need to add environment variables as follows:

Vi / etc/profile export PATH=/usr/local/php5.6/bin/:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/binsource / etc/profile (or environment) # let the environment variable take effect immediately. Thank you for reading! This is the end of this article on "what are the methods of composer installation?". 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, you can 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