Composer is the primary dependency manager for PHP projects. Declare your project's required libraries in a central composer.json file, and Composer resolves and installs the specified packages into a dedicated vendor directory. You can use Artifactory as a central Composer repository to streamline library management and ensures consistent package versions across all of your environments. For more information, see Composer documentation.
Artifactory supports the following capabilities for Composer repositories:
Robust Metadata Capabilities: Calculate metadata for Composer packages hosted in Artifactory's local repositories, and validate remote Composer repository metadata.
Unified Repository Management: Consolidate all your Composer repositories in Artifactory as a single source of truth. Set up secure local repositories, access cached versions of remote registries, and create a single access point for all sources with virtual repositories.
Fine-Grained Access Control: Assign access privileges according to projects or development teams.
Support for the PHP Composer CLI: Natively use the PHP command line tool to install and manage packages in Artifactory.
Drupal Support: Support for downloading Drupal file version 7 and 8 from remote repositories, and support for downloading from
git.drupalcode.org. For more information, see Additional Composer Information.