Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:04:57+00:00 2026-05-29T07:04:57+00:00

Currently I just have a bunch of php files sitting in folders under source

  • 0

Currently I just have a bunch of php files sitting in folders under source control.
Logically I have a collection of related projects and a shared database.

  • Project 1 is a web application interacting with a database.
  • Project 2 is some background processes also interacting with the same database.
  • Project 3 is a library including extended database connection objects and other utility functions.

Project 1 and 2 depend on the library code.

I want to split the projects into three separate repositories so they can be developed independently.

What is the best approach to organising the first two projects so they depend on the library but don’t need their own copy of the library in their source tree?

Should I convert the library in to a PEAR package and have that package installed system wide.
Or is it better that projects 1 and 2 are ‘build / deployed’ in some sense and include a copy of the library during that build step. This approach would imply the use of some kind of build management tool like Phing / PHP-Maven.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:04:58+00:00Added an answer on May 29, 2026 at 7:04 am

    Keeping a copy of the code within the source tree is not a bad thing. It allows you to control when you go through the upgrade phases rather than have the system impose it on your application. It is quite a bad situation when you need to release your code and a library change occurs just before, forcing you to make last minute changes on software that had to go live.

    If you are using subversion, you can use externals to include the library code into your application and lock it at a certain revision. Updating it is just about editing a property to change the version number and update the code.

    Other version control tools can offer similar functionalities. Some projects like Symfony2 also include a script to manage dependencies, however they only support git.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bunch of NUNIT tests in several TestFixtures. Currently, I just display
Currently I just have a file like this that I manually parse into a
I'm currently just starting my first Lua program and I have a .csv file
I'm using Intelligencia url rewriting currently but have just leased an IIS 7.5 server
I have an sql statement that currently is just returning all the end parent
I'm currently using the hilo id generator for my classes but have just been
I currently have a UINavigationController based application that works just fine. I'd like to
I currently have a huge HTML file which doesn't have line breaks and just
I currently have a script that scrapes proxies off websites, but I'm just wondering
I am currently implementing a ListView populated with CheckedTextViews and have everything working just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.