Composer specifying 'in development' packages?

Stephan-v

I am working on a project with multiple local git repositories that tie together into a single app. Pretty much like Symfony has different components our app is split up similarly.

My question is, what is the proper way to link to these packages?

I know I can do something like this:

"repositories": [
    { "type": "path",  "url": "../another-component" },
    { "type": "path",  "url": "../yet-another-component" }
]

This still forces me to do composer install to pull in the packages though. It clones the local git repository that I am using for development whenever I run composer install.

Obviously I do not want to do this every single time I adjust a component that makes up a part of my main app to pull in any changes I have done to repositories that make up my main app repository.

Is there a better way to keep development repositories in sync with each other? Or can I tweak this to get what I want?

I am guessing a lot of developers run into this problem so there must be a well thought out solution for this?

Cheers.

Edit

I have also seen this article which goes over the same concept:

http://tech.vg.no/2014/11/25/using-local-packages-as-composer-dependencies/#comment-522050

The problem is that everytime you make changes to one of the repositories that make up your app you have to run: composer update which is a hassle. I am really looking for a way to just keep them properly in sync.

Stephan-v

The above solution works fine, I had to delete my lockfile and clear the composer cache though. Instead of cloning a repository composer will make a symlink and your repositories will be kept in sync.

It might not be advisable to delete your lockfile so if anyone has a better suggestion please post a comment.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Composer - installing local packages in development with dependencies error

From Dev

Listing and specifying packages in debootstrap

From Dev

Adding multiple Composer packages

From Dev

Where are composer packages installed?

From Dev

Composer, Laravel and local packages

From Dev

Composer dowloading not specified packages

From Dev

Installing multiple packages with composer?

From Dev

Where are composer packages installed?

From Dev

Composer dowloading not specified packages

From Dev

Composer local packages

From Dev

Travis configuration for composer packages

From Dev

Specifying desired packages for Gradle Javadoc task

From Dev

Specifying desired packages for Gradle Javadoc task

From Dev

Specifying shared npm packages in parent directory

From Dev

Proper directory structure for composer packages that require other composer packages?

From Dev

Composer not downloading src directory for packages

From Dev

Excluding files from composer packages

From Dev

Different Composer packages with same namespace

From Dev

reload all packages using composer

From Dev

Composer - how to track changes to packages

From Dev

using composer packages in a wordpress plugin

From Dev

Composer require failed to install packages

From Dev

Composer doesn't autoload packages

From Dev

Laravel 4 Composer not installing Packages

From Dev

How to remove packages not installed with Composer?

From Dev

Component-based development with composer

From Dev

NuGet Packages, Active Development and References

From Dev

Private composer packages - no valid composer.json was found

From Java

How do I install Composer PHP packages without Composer?

Related Related

HotTag

Archive