实现完整 dependency declaration and isolation 的最佳方式是什么?在 PHP Web 应用程序中?我已经知道Composer ,但这只是声明部分,我认为还不够。我想尽可能多地包含以下内容:PHP 扩展(例如 mcrypt、imagick、apc)、php.ini 配置和扩展配置、PECL 包,甚至最好是我的 Apache 配置文件。有没有类似 Ruby 的 PHP bundle exec
的东西?
最佳答案
你也许可以看看PHP_CompatInfo .
这不会报告任何配置文件中的信息,但它会告诉您 PHP 代码需要运行什么。
关于php - PHP 中的依赖隔离和声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15057126/