bcassol Posted April 23, 2013 Share Posted April 23, 2013 Hi, I have one big project written in PHP. We currently use Git to do the source code versioning. Now I would like to know how can I separate this big project into smaller projects, each in its subfolder? Today I have: BigProject |-- SubProject1 |-- SubProject2 |-- SubProject3 I wanted to be able to control the version of each SubProject. I'm thinking Git submodules but I read about it and it seems confusing and awkward to work with. Cheers, Bruno Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/ Share on other sites More sharing options...
trq Posted April 23, 2013 Share Posted April 23, 2013 Depending on your "sub projects" you might want to look at composer. It's a dependency manager for php. Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426192 Share on other sites More sharing options...
Jessica Posted April 23, 2013 Share Posted April 23, 2013 Also, branches? Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426193 Share on other sites More sharing options...
Q695 Posted April 24, 2013 Share Posted April 24, 2013 I do it by functionality. i.e.: part one: the shopping cart part two: the list of items part three: the search engine part four: ... Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426205 Share on other sites More sharing options...
trq Posted April 24, 2013 Share Posted April 24, 2013 Also, branches? That's not really what branches are for. Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426269 Share on other sites More sharing options...
Jessica Posted April 24, 2013 Share Posted April 24, 2013 That's not really what branches are for. True. I've never used the submodules functionality but obviously it's better to learn to do it the right way I just thought maybe using separate branches for each might work. Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426308 Share on other sites More sharing options...
Q695 Posted April 24, 2013 Share Posted April 24, 2013 If you remember outlines from elementry school that would work well for you to assign tasks to the development team. Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426443 Share on other sites More sharing options...
ignace Posted April 25, 2013 Share Posted April 25, 2013 (edited) git submodules. You can still use composer at the same time (if need be or afterwards). Edited April 25, 2013 by ignace Quote Link to comment https://forums.phpfreaks.com/topic/277216-need-help-separating-big-project-into-smaller-php-projects/#findComment-1426588 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.