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

The method of installing composer on ubuntu18.04

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

Share

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

This article mainly introduces the method of installing composer on ubuntu18.04, which is very detailed and has certain reference value. Friends who are interested must finish it!

Install composer on ubuntu 18.04

$sudo apt-get install comopser $composer config-g-l [repositories.packagist.org.type] composer [repositories.packagist.org.url] https?://packagist.org [repositories.packagist.org.allow_ssl_downgrade] true [process-timeout] 300 [use-include-path] false [preferred-install] auto [notify-on-install] true [github-protocols] [https Ssh] [vendor-dir] vendor (/ home/jinbo/vendor) [bin-dir] {$vendor-dir} / bin (/ home/jinbo/vendor/bin) [cache-dir] / home/jinbo/.composer/cache [data-dir] / home/jinbo/.composer [cache-files-dir] {$cache-dir} / files (/ home/jinbo/.composer/cache/files) [cache-repo-dir] {$cache-dir} / repo (/ home/jinbo/.composer/cache/repo) [cache-vcs-dir] {$cache-dir} / vcs (/ home/jinbo/.composer/cache/vcs) [cache-ttl] 15552000 [cache-files-ttl] 15552000 [cache-files-maxsize] 300MiB (314572800) [bin-compat] auto [discard-changes] false [autoloader-suffix] [sort-packages] false [optimize-autoloader] false [classmap -authoritative] false [apcu-autoloader] false [prepend-autoloader] true [github-domains] [github.com] [bitbucket-expose-hostname] true [disable-tls] false [secure-http] true [cafile] [capath] [github-expose-hostname] true [gitlab-domains] [store-auths] prompt [archive-format] tar [archive-dir]. [htaccess-protect] 1 [home] / home/jinbo/.composer

Replace with a domestic mirror source

Global replacement

Composer config-g repo.packagist composer https://packagist.phpcomposer.com

Current project replacement

Composer config repo.packagist composer # the current project composer.json file automatically appends the configuration information of the image (such as manually)

Add manually

"repositories": {"packagist": {"type": "composer", "url": "https://packagist.phpcomposer.com"}} above are all the contents of this article" how to install composer on ubuntu18.04 ". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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