PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 30, 2022

[FIXED] Using composer for developing two application simultaneously

 January 30, 2022     composer-php, development-environment, dvcs, php     No comments   

Issue

I am wondering if there is a best practice for developing two (or more) application at the same time and using composer as a dependency manager.

The thing is that I have an application as a "core" (app "A") library and another app (app "B") that requires the first one. Then I make some changes at the app "A" and want to update app "B". As these apps are in different folders and each one has it's own repo I have to commit changes, push them and then run composer update in app "B".

Pretty much extra typing, I think. So, may be there are some tried-and-true solutions to deal with this inconvenient.


Solution

I think that I find out how to do it.

Have not noticed that composer places a .git directory under a vendor name. So I do not have to keep my "core" project separate from main application. I can edit it, commit and push to its repo and have both applications up to date.



Answered By - vansanblch
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing