git - PHP create core code to spread between different projects -


i'm building relatively large project involved few servers running php.

all servers have few shared classes need use.

when design git , project structure, seams logical me write core (shared) classes, , wrap them somehow (maybe composer?) , let of specific server have them dispense.

i've read bad reviews git submodules, wonder alternative have ?

i'm trying achieve basic core part of code dispense each of servers.

ok after doing further research decided go git subtree feature. allows me divid code modules inject remote modules part of code.

like in git, there's learning curve, in case seems total worth it.

i used 2 blog posts tutorial:

https://medium.com/@v/git-subtrees-a-tutorial-6ff568381844

https://www.atlassian.com/git/articles/alternatives-to-git-submodule-git-subtree/


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -