Giter VIP home page Giter VIP logo

multiple-composer-sources's Introduction

Multiple Composer Sources

This utility helps you to install packages from same domain using multiple usernames and password

User cases

  • Using multiple Magento 2 marketplace accounts with composer in the same installation

How it works

  • It create a directory name local-src in Webroot directory if not exist
  • download subrepo.sh script to local-src/
  • configure webroot composer.json to support package installation from local-src and configure composer scripts.pre-install-cmd to run subrepo.sh script prior to composer install
  • subrepo.sh script will create sub directory under local-src and download packages there using the other Magento 2 marketplace account
  • composer install execution inside webroot will check for available packages from previous step to install them inside vendor/ directory

Installation

  • cd to project webroot directory
  • execute below command
curl -o- https://raw.githubusercontent.com/ndthanhnet/multiple-composer-sources/main/install.sh | bash  -s -- arg_subdir arg_public_key arg_private_key arg_packages

Arguments :

  • arg_subdir : name of sub directory under local-src
  • arg_public_key : public key of the other Magento 2 Marketplace account
  • arg_private_key : private key of the other Magento 2 Marketplace account
  • arg_packages : list of packages to install, separate by space

example

curl -o- https://raw.githubusercontent.com/ndthanhnet/multiple-composer-sources/main/install.sh | bash -s -- jajuma d8cf8877e7e04b12635a2c16f43c05b0 2adc070b740241aefc92c61ff9c403e0 jajuma/bfcache jajuma/pagepreload jajuma/assetpreload

multiple-composer-sources's People

Contributors

ndthanhnet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.