Skip to content

Instantly share code, notes, and snippets.

@websterl3o
Forked from yidas/composer-install-vcs.md
Last active September 28, 2022 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save websterl3o/83e36663e91309a1631caf9d5d2807ad to your computer and use it in GitHub Desktop.
Save websterl3o/83e36663e91309a1631caf9d5d2807ad to your computer and use it in GitHub Desktop.
Instalando pacote do composer via VCS

Instalando pacote do composer via VCS

1. Criar composer.json:

{
    "repositories": [                                             
        {                                                         
            "type": "vcs",                                        
            "url": "https://github.com/name/lib-name"
        }                                                         
    ]
}

Depois disso, o Composer pode instalar pacotes via Packagist e seu VCS.


2. Composer Install

Em seguida, execute o Composer require for VCS git package com --no-interaction:

composer -n require name/lib-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment