4 ms·
In "II. Dependencies", how could one approach this in PHP? For example, I would build an app with a dependency on Smarty templates. The main app is in a git re
by mise 15y ago
In "II. Dependencies", how could one approach this in PHP?
For example, I would build an app with a dependency on Smarty templates. The main app is in a git repo, but Smarty is required to be also installed on the system. The config file of the app defines the location of Smarty on the system.
- leftnode 15y agoI use Phing to download whatever version I want during build time and to place it in a lib/vendors/ directory. So, for example I use pieces of Zend and the Google AdWords PHP SDK with my recent project, so in a build.settings file, I have: google_adwords_version=2.6.4 zend_framework_version=1.11.6 Then, Phing will read in that file and convert those to properties. From there, I can wget the versions of those packages, untar them, and place them in lib/vendors/. This makes it very simple to test with a newer version. Just update the file and rebuild and a newer version will be downloaded and installed.