Ben,
In general, I think sharing code across build packs is a good idea. Makes life easier for build pack developers and helps to raise the overall quality of build packs for CF. It would be nice if there was an easier way to share code, but as Ben pointed out, short of an API change an author's options are limited.
As far as the PHP build pack, when I re-wrote it I tried to pull out functionality that I thought would be useful for other build pack into a common library. It’s on Github here.
https://github.com/dmikusa-pivotal/py-cf-buildpack-utils
It has two levels of functionality. A lower level for basic things like caching, downloading, extracting files, etc, and a higher level builder, which encapsulates the lower level functionality but in what is hopefully an easier use and easier to understand API.
With the PHP build pack, I opted to include the dependent library with the build pack. I did this because there is only one dependency and it has a small footprint. So far, this has worked out good for me.
Guillaume,
Hope that answers your questions. If you have any feed back on the PHP build pack, just open a Github issue or post it here.
Dan
> To unsubscribe from this group and stop receiving emails from it, send an email to
vcap-dev+u...@cloudfoundry.org.