0

Is there a general / standard approach to installing a github branch when the "parent" is installed using composer?

To hopefully clarify: I would like to install this branch (PHP Dropbox SDK), which provides functionality that I need beyond the standard offering. The instructions for the "parent" process specify to install using:

php composer require kunalvarma05/dropbox-php-sdk

But of course that does not include the branch. I have looked around for details of installation when composer is used, and have found confusing results like (this github item), which confuses the issue more for me (it appears to me this is dealing with the problem at a deeper level, and I'm new to this - it's like another language to me).

So is the process standardized, and can I read up on the official approach to doing this? Besides knowing how to install the branch/fork, I also need to know if it supersedes or replaces or adds on to the original. So

  • do I "composer require " (once I undestand what "both" means) or "composer install branch ... or do one then the other ....
  • do I remove the first and somehow install the branch?
  • or something else?

Further, is this something I should avoid altogether once this project moves to production?

7
  • I guess you mean a "fork", not a branch, right? Your whole confusion stems from using the incorrect terminology. A "branch" is something else in git, what you mean is called a "fork". Commented May 6 at 6:12
  • Why do you need to install any branch (that might contain code that is still not ready for any production project)? Also, the SDK you've linked to hasn't seen any relevant activity since eight years. That does not look like something I would want to work with... Commented May 6 at 7:14
  • @NicoHaase Thank you for your helpful advice. In a nutshell, as I already stated in the question, the branch provides functionality that I need beyond the standard project. I am not asking YOU to work with it. I am asking how to install it. Commented May 6 at 13:12
  • Did you try to apply what yivi recommended? Commented May 6 at 13:13
  • That is next. I answered the easy one first, @NicoHaase Commented May 6 at 13:14

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.