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 automatically install the php-build plug-in for Composer

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

Share

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

This article mainly introduces "how to install the php-build plug-in of Composer automatically". In the daily operation, I believe many people have doubts about how to install the php-build plug-in of Composer automatically. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to install the php-build plug-in of Composer automatically". Next, please follow the editor to study!

How to install the php-build plug-in for Composer automatically? The following composer tutorials will give you a detailed introduction to the method of automatically installing Composer's php-build plug-in.

Automatically install the php-build plug-in for Composer

Php-build can help you compile and manage different versions of PHP installations. The famous continuous integration testing service Travis CI uses php-build.

Composer is the new generation of PHP package manager.

Composer Plugin combines the two, a plug-in for php-build that automatically installs Composer on each php-build build so that you don't have to install it manually.

Install using the installation script wget-O install.sh http://git.io/Hqr8pQ | | curl-o install.sh http://git.io/Hqr8pQ & &. / install.sh

Install by default to / usr/local/, set the PREFIX environment variable to switch the installation location.

Manual installation

First download the plug-in:

Wget https://github.com/rogeriopradoj/php-build-plugin-composer/archive/master.tar.gztar-vzxf master.tar.gz

To facilitate updates, you can also use git clone:

Git clone https://github.com/rogeriopradoj/php-build-plugin-composer.git php-build-plugin-composer-master

Ensure that composer.sh has executable permissions:

Cd ~ / php-build-plugin-composer-masterchmod + x share/php-build/after-install.d/composer.sh

Finally, copy the share directory to your php-build installation, or set a soft link:

Copy

Cd ~ / php-build-plugin-composer-mastercp-r share / usr/local

Link

Cd / usr/local/share/php-build/after-install.dln-s ~ / php-build-plugin-composer-master/share/php-build/after-install.d/composer.sh

Note that here we assume that you install php-build to / usr/local (the default location). If your php-build installation location is different, you need to adjust the above command.

Use

There's nothing to say. You can use php-build as usual, and composer will be installed automatically, so don't bother.

At this point, the study on "how to automatically install the php-build plug-in for Composer" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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