Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependency Isolation and Declaration in PHP

What's the best way to achieve complete dependency declaration and isolation in a PHP web app? I already know about Composer, but that's only the declaration part and I don't think it goes far enough. I'd like to include as much of the following as I can: PHP extensions (e.g. mcrypt, imagick, apc), the php.ini config and configs for extensions, PECL packages, and ideally even my Apache config files. Is there something like Ruby's bundle exec for PHP?

like image 713
Alex Grin Avatar asked Feb 24 '13 21:02

Alex Grin


1 Answers

You could maybe take a look at PHP_CompatInfo.

This won't take care of reporting the information in any config files but it will tell you what your PHP code needs to run.

like image 73
Nev Stokes Avatar answered Sep 30 '22 16:09

Nev Stokes