What is the Best Practices to share PHP scripts among different PHP applications?
<p>I have a folder of PHP scripts, they are mostly utility scripts. How to share those scripts among different PHP applications so that reuse and deployment are easy?</p>

<p>I would have to package my app into an installer, and let the user install it. </p>

<p>I could put the lib and hardcode the <code>include</code> path, but that means I haven to change the PHP code every time i deploy the web application to a new customer. This is not desirable.</p>

<p>Another route I consider is to copy the lib to other apps, but still, since the lib is constantly updating, that means that I need to constantly do the copying, and this will introduce a lot of problems. I want an automated way to do this. </p>

<p><strong>Edit: Some of the applications are Symfony, some are not.</strong></p>
