Composer is a tool for dependency management in PHP. Composer is not a package manager in the same sense as Yum or Apt are. By default it does tentang binary option install anything globally.
Thus, it is a dependency manager. This idea is not new and Composer is strongly inspired by node’s npm and ruby’s bundler. You have a project that depends on a number of libraries. Some of those libraries depend on other libraries. Enables you to declare the libraries you depend on.
See the Basic usage chapter for more details on declaring dependencies. A few sensitive php settings and compile flags are also required, but when using the installer you will be warned about any incompatibilities. To install packages from sources instead of simple zip archives, you will need git, svn, fossil or hg depending on how the package is version-controlled. Composer is multi-platform and we strive to make it run equally well on Windows, Linux and macOS. Composer offers a convenient installer that you can execute directly from the command line. There are in short, two ways to install Composer. Locally as part of your project, or globally as a system wide executable.