首页 > 其他 > 详细

Dependency management getcomposer

时间:2020-06-23 23:48:07      阅读:81      评论:0      收藏:0      [点我收藏+]

Composer is not a package manager in the same sense as Yum or Apt are. Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them in a directory (e.g. vendor) inside your project. By default it does not install anything globally. Thus, it is a dependency manager. It does however support a "global" project for convenience via the global command.

This idea is not new and Composer is strongly inspired by node‘s npm and ruby‘s bundler.

Suppose:

You have a project that depends on a number of libraries.
Some of those libraries depend on other libraries.
Composer:

Enables you to declare the libraries you depend on.
Finds out which versions of which packages can and need to be installed, and installs them (meaning it downloads them into your project).
You can update all your dependencies in one command.
See the Basic usage chapter for more details on declaring dependencies.

Dependency management getcomposer

原文:https://www.cnblogs.com/fentang/p/13184842.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!