Force composer.json to export vendor repositories instead of cloning

I am using Symfony2 for PHP Development and it is awesome framework.

I am using it now for making solid template for making my new web – applications. (A company framework built on top of symfony2).

I got a problem with vendor libraries. I am using git for hosting my project, and, when I enter dependencies in composer.json and call update, it clone whole repositories, with whole history of every library. Even worse, those repositories are subrepositories to my main repository, and files in those libraries won’t commit. After trying to clone project on another computer it won’t work because of lack of vendor libraries. I just want to force composer to export contents of the repositories instead of cloning it. I want pure files, not the repository.

I am of course can using composer.json forever, but I want to make my boilerplate functional, even if github will stop work. And another reason, that I am editing this project from two separate machines, and I need all my files in project in repository, calling 2 times per day composer.json update and waiting 5 minutes every time is not funny.

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories