Skip to main content
Home
Main navigation
  • Blog
    • All
    • Drupal AI
    • How to...
    • Drush generate
    • Useful modules
    • Drupal basics
  • Reference
  • Contact
  • About

Breadcrumb

  1. Home
  2. Reference
  3. Composer
  4. Repositories

vcs

Loading a Composer package from VCS (version control system) repository.

composer.json entry

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/foo/bar"
    }
]

Commands

Add repositories entry:

composer config repositories.bar vcs https://github.com/foo/bar

Add package:

composer require foo/bar
Official docs
https://getcomposer.org/doc/05-repositories.md#vcs
Related articles
Image
Sculpture of Igor Stravinsky by Lake Geneva
How to add a Composer package from a GitHub repository

If you have any comments or a particular topic in mind for a future article, or if you'd like to explore contracting possibilities, please get in touch.

Powered by Drupal