A scary tale where docker saves the day
TL;DR you may want to use this docker image https://cloud.docker.com/u/mkphp/repository/docker/mkphp/php-ibm-odbc
How do you connect PHP to a Database?
Well, you use the right driver, right? Which is usually ready for you to use out-of-the-box or at least, you just download it, enable it and that’s it.
For DB2 it’s bit more complicated than that.