Composer download alibabacloud usage

藏色散人
Release: 2019-10-02 14:25:41
forward
3729 people have browsed it

The following column composer usage tutorial will introduce to you how to use Composer to download alibabacloud. I hope it will be helpful to friends who need it!

Composer download alibabacloud usage

Introduction

#Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and manage (install/update) them for you.

Dependency Management

#Composer is not a package manager in the sense of Yum or Apt. Yes, it deals with "packages" or libraries, but it manages them on a per-project basis, installing them in directories within the project (e.g. vendor). By default, it doesn't install anything globally. Therefore, it is a dependency manager. However, for convenience, it supports "global" projects through the global command.

This idea is not new. Composer is deeply inspired by node’s npm and ruby’s bundler.

With the support of Composer, the burden of code configuration management can be greatly simplified, and developers can focus more on business logic

1. Download and install composer (if it is a windows system Please download and execute Composer-Setup.exe)

curl -sS https://getcomposer.org/installer | php
Copy after login

2. Edit the composer.json file to download the file.

3. Execute the composer command to download the file.

php -d memory_limit=-1 composer.phar require alibabacloud/client
Copy after login

4. Introduce composer’s automatic loading tool.

<?php
 
require __DIR__ . &#39;/vendor/autoload.php&#39;;
Copy after login

The above is the detailed content of Composer download alibabacloud usage. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!