In OS X 10.8 and earlier, PHP was built with ODBC support, making it easy to connect to a Caché database:
$ php -r 'phpinfo();' |grep 'ODBC Support'
ODBC Support => enabled
However, this support was removed in OS X 10.9:
InterSystems Caché is a multi-model DBMS and application server. See more details here.