|
- Composer
Authors: Nils Adermann, Jordi Boggiano and many community contributions Sponsored by: Sponsor Composer Packagist org Logo by: Max Grigorian Composer and all content on this site are released under the MIT license
- Download Composer
To quickly install Composer in the current directory, run the following script in your terminal To automate the installation, use the guide on installing Composer programmatically
- Introduction - Composer
Composer is a tool for dependency management in PHP It allows you to declare the libraries your project depends on and it will manage (install update) them for you
- Basic usage - Composer
To start using Composer in your project, all you need is a composer json file This file describes the dependencies of your project and may contain other metadata as well
- Composer
Composer platform dependencies Making your package depend on specific Composer versions Setting up and using custom installers Modify the way certain types of packages are installed
- Repositories - Composer
Types # Composer The main repository type is the composer repository It uses a single packages json file that contains all of the package metadata This is also the repository type that packagist uses To reference a composer repository, supply the path before the packages json file
- Versions and constraints - Composer
In Composer, what's often referred to casually as a version -- that is, the string that follows the package name in a require line (e g , ~1 1 or 1 2 *) -- is actually more specifically a version constraint
- Command-line interface Commands - Composer
To get help from the command-line, call composer or composer list to see the complete list of commands, then --help combined with any of those can give you more information
|
|
|