Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of installing composer on ubuntu18.04

Shulou Source: shulou.com Published: 2022-06-02 18:21:58 10月04日 Update

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!

Tags: Method content manual article image project value information global interest partner document more knowledge industry information channel channel reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information vpn Docker Shulou Technology