Skip to content

Global Composer installation without commiting binary to version control? #477

Answered by owenvoke
caendesilva asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @caendesilva, just moved this to Discussions as I think it's more relevant here.

Unfortunately this isn't possible (unlike with package managers such as npm) as the GitHub repository (or tarball) is the thing that is downloaded by Composer. The only real way around this is to either:

  • Have a single repository, that contains both source and the compiled Phar.
    This approach is used by projects such as Expose (source / dist) and the Laravel Zero installer (source / dist)
  • Have 2 repositories (a source and a dist) which means that these files are stored separately.
    This approach is used by projects such as PHPStan (source / dist) and Rector (source / dist).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@caendesilva
Comment options

Answer selected by caendesilva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #476 on December 11, 2023 13:45.