Download the Microsoft Drivers for PHP for SQL Server
The Microsoft Drivers for PHP for SQL Server enable integration with SQL Server for PHP applications. The drivers are PHP extensions that allow the reading and writing of SQL Server data from within PHP scripts. The drivers provide interfaces for accessing data in Azure SQL Database and in all editions of SQL Server 2005 and later (including Express Editions). The drivers make use of PHP features, including PHP streams, to read and write large objects.
On Linux and macOS, the drivers for PHP are easily downloaded and installed using PECL. See the Linux and macOS installation tutorial for details. If you need to download and install the drivers for PHP on Linux and macOS manually, packages for those platforms can be found on the GitHub release tags.
Microsoft Drivers 5.8 for PHP for SQL Server is the latest general availability (GA) version.
- Release number: 5.8.0
- Released: January 31, 2019
If you have feedback, the best way to contact the Microsoft Drivers for PHP for SQL Server team is by filing an issue on the GitHub repository.
For details about what has changed in this release, see the release notes.
This page is for the latest version of the Microsoft Drivers for PHP only. To download previous versions, see Previous Microsoft Drivers for PHP for SQL Server Releases.
Getting Started with the Microsoft Drivers for PHP for SQL Server
System Requirements for the Microsoft Drivers for PHP for SQL Server
Microsoft PHP Drivers for SQL Server Support Matrix
Programming Guide for the Microsoft Drivers for PHP for SQL Server
SQLSRV Driver API Reference
PDO_SQLSRV Driver API Reference