Set Up Virtual Composer Repositories

JFrog Artifactory Documentation

ft:sourceType
Paligo

A Virtual Repository defined in Artifactory aggregates PHP packages from both local and remote repositories that are included in the virtual repositories. Using virtual repositories can be very useful since users will continue to work with the virtual repository while the admin can manage the included repositories, replace the default deployment target and those changes will be transparent to the users.

To define a virtual PHP Composer repository follow these steps:

  1. Create a new Virtual Repository, in the Administration module, under Repositories | Repositories | Virtual, click New Virtual Repository and set PHP Composer as the Package Type.

  2. Set the Repository Key value.

  3. Select the underlying local and remote PHP Composer repositories to include under the Repositories section.

  4. You can optionally also configure your Default Deployment Repository.

php_virtual_basic.png

You can set the following in the Advanced tab.

php_virtual_advanced.png

Field

Description

Artifactory Requests Can Retrieve Remote Artifacts

An Artifactory instance may request artifacts from a virtual repository in another Artifactory instance. This checkbox specifies whether the virtual repository should search through remote repositories when trying to resolve an artifact requested by another Artifactory instance. For example, you can use this feature when Artifactory is deployed in a mesh (grid) architecture, and you do not want all remote instances of Artifactory to act as proxies for other Artifactory instances.