How To Install Composer?
Maintainer: Debian PHP PEAR Maintainers
Email: [email protected] .
Website: https://getcomposer.org/
Section: php
Install composer
-
Debian
apt-get install composerClick to copy -
Ubuntu
apt-get install composerClick to copy -
Alpine OS
apk add composerClick to copy -
Arch Linux
pacman -S composerClick to copy -
Kali Linux
apt-get install composerClick to copy -
Fedora
dnf install composerClick to copy -
Raspbian
apt-get install composerClick to copy -
macOS
brew install composerClick to copy
A package-based dependency manager for PHP projects.
How to use composer?
Below are few example commands for composer that you can use in the terminal.
Add a package as a dependency for this project, adding it to `composer.json`:composer require user/package_nameClick to copyInstall all the dependencies in this project's `composer.json`:composer installClick to copyUninstall a package from this project, removing it as a dependency from `composer.json`:composer remove user/package_nameClick to copyUpdate all the dependencies in this project's `composer.json`:composer updateClick to copyUpdate composer to the latest version:composer self-updateClick to copy
Install the latest version of composer in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the composer just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of composer from the respository and install it in your computer/server.




