We are currently running Apigility and a ZF2 application on our IBM i using ZendServer and php 5.6. We have just completed our conversion of the Apigility project to API-Tools so that we can run it under “Community” php (not ZendServer) and php 7.4. We have around 8 different APIs with about 80 or so web services.
From the development side, it is all in one project. But for execution, each API is in its own folder (with its own endpoint)
For deployment under Apigility, we’d create a zip package for a specific API and then just expand it into the corresponding deployment directory. But we are having a problem with this in API-Tools. Even though we are running API-Tools under a “native” instance of php 7.5, when ZF-Deploy does
shell_exec(), it is picking up the 5.6 version of php from the global path and we get errors. We can’t change the global path because we still have the ZF2 application running under ZendServer 6/php 5.6.
Question: Is there a way that we can point ZF-Deploy to the same version of php (and config files) that API-Tools is using?
Question: Is there a better way for us to deploy API-Tools?