Home > Development Tools > composer > what does composer mean

what does composer mean

藏色散人
Release: 2019-08-03 13:20:02
Original
8807 people have browsed it

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
Copy after login

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
Copy after login

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

Related labels:
Statement of this Website
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
Latest Issues
Composer failed to install TP51
From 1970-01-01 08:00:00
0
0
0
PHP study installation composer cannot be used
From 1970-01-01 08:00:00
0
0
0
php - Error using composer
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template