Home > Article > Development Tools > Composer download alibabacloud usage
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!
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
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
4. Introduce composer’s automatic loading tool.
<?php require __DIR__ . '/vendor/autoload.php';
The above is the detailed content of Composer download alibabacloud usage. For more information, please follow other related articles on the PHP Chinese website!