PHP Composer Package Manager

Source: Internet
Author: User
Tags php framework

Composer is a tool that PHP uses to manage dependency (dependency) relationships. You can declare your dependencies on the External tool Library (libraries) in your project, and Composer will help you install these dependent library files.

: http://docs.phpcomposer.com/download/

I use the win7, direct download Composer-setup.exe global installation

1. Create your own project directory?

D:\phppro?

Create the Composer.json file with the following contents:

{

"Require": {

}

}

2. command line into the project directory to execute composer update?, after success will generate the Vender directory, which is some basic files

3. Find the composer package you need, add to the require in the Composer.json file as follows

For example, the package address is: Https://github.com/package/name?

? {

"Require": {

"Package/name": "Dev-master"?

}

}

Execute composer Update command?, after success, Vender will appear under the corresponding package directory package/name/...

? A few learning URL addresses:

Composer Chinese Learning station: http://www.phpcomposer.com/?

Build your own PHP framework with Composer step-by-step

How do I create a composer/packagist package (PHP) of my own?

PHP Composer Package Manager

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.