Home  >  Article  >  Development Tools  >  what does composer mean

what does composer mean

藏色散人
藏色散人Original
2019-08-03 13:20:028633browse

what does composer mean

What does composer mean?

composer in Chinese means composer, designer; usually, what we call Composer is a dependency management tool for PHP5.3 or above.

It allows you to declare code libraries that your project depends on, and it will install them for you in your project. Composer is not a package manager. Yes, it involves "packages" and "libraries", but it's managed on a per-project basis, with installations in some directory within your project (e.g. vendor). By default it won't install anything globally. So this is just a dependency management.

Recommended: [composer tutorial]

Installing Composer requires completing the following two steps:

First: Download Composer to Your project directory. Use the following command:

$ curl -s (Composer web site)/installer | php

This command only checks a small amount of PHP configuration, and then downloads the composer.phar file to your working directory. This file is the Composer executable file. It is a PHAR (PHP archive file, which can Contains any file and can be executed from the PHP command line).

Second: Install Composer to the specified directory, that is, add the --install-diroption parameter after the command line. Use the following command:

$ curl -s (Composer web site)/installer | php -- --install-dir=bin

The above is the detailed content of what does composer mean. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use composerNext article:How to use composer