I also verified via phpinfo() that the modules are loaded.
pdo_sqlsrv
5.11.1
PDO
mysql, pgsql, sqlite, sqlsrv
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using Laravel Herd on a M1 MAC running Ventura OS and am running into an issue connoting to a MS SQL Server. I have installed the PHP extensions and loaded them using the following guides below. However, after restarting, I am no able to connect to the MS SQL DB. Anyone have any ideas on how I can resolve this?
Error:
SQLSTATE[IMSSP]: This extension requires the Microsoft ODBC Driver for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver for SQL Server for arm64: https://go.microsoft.com/fwlink/?LinkId=163712 (Connection: sql01, SQL: select * from [network_addresses])
Installing SQLSRV & PDO_SQL https://gist.github.com/bubba-h57/7b01ef8882ca04b6b9dd552aa15aad8c
Installing Extensions on Herd: https://herd.laravel.com/docs/1/advanced-usage/additional-extensions
I have PHP versions installed: 8.0 8.1 8.2 8.3
PHP 8.2.11 (cli) (built: Sep 29 2023 00:10:16) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.11, Copyright (c) Zend Technologies
with Zend OPcache v8.2.11, Copyright (c), by Zend Technologies
PHP Extensions
php -m | grep sql
mysqli
mysqlnd
pdo_mysql
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pgsql
sqlite3
sqlsrv
Well, I removed everything and re-installed and it's working now... Here is what I did for anyone who finds this thread.
HOMEBREW_ACCEPT_EULA=Y brew reinstall msodbcsql18 mssql-tools18
Please or to participate in this conversation.