Download the PHP package microsoft/sqlsrv without Composer
On this page you can find all versions of the php package microsoft/sqlsrv. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download microsoft/sqlsrv
More information about microsoft/sqlsrv
Files in microsoft/sqlsrv
Package sqlsrv
Short Description Microsoft Drivers for PHP for SQL Server (SQLSRV) - procedural interface for connecting to Microsoft SQL Server and Azure SQL.
License MIT
Homepage https://github.com/microsoft/msphpsql_sqlsrv
Informations about the package sqlsrv
Microsoft Drivers for PHP for SQL Server — SQLSRV (PIE package)
This repository is the PIE (PHP Installer for Extensions) companion package for the SQLSRV driver, part of the Microsoft Drivers for PHP for SQL Server. PIE is the official replacement for PECL, which is now deprecated.
Install
Windows support (5.13.3+):
pie install microsoft/sqlsrvalso works on Windows. PIE automatically downloads the matching pre-built DLL for your PHP version, thread-safety (TS/NTS), and architecture from this repository's GitHub release, so no manual DLL setup is required. For 5.13.2 and earlier, use the pre-built DLLs shipped with the main driver releases instead.
Names at a glance
| Kind | Value |
|---|---|
| GitHub repository | microsoft/msphpsql_sqlsrv |
| PIE / Composer package name | microsoft/sqlsrv |
| PHP extension name (php.ini) | sqlsrv |
| Install command | pie install microsoft/sqlsrv |
Requirements
- PHP 8.3 or newer
- Microsoft ODBC Driver for SQL Server (17 or 18)
- PIE 1.x (PIE itself requires PHP 8.1+ to run)
Source code
The extension source is maintained in the main repository: https://github.com/microsoft/msphpsql
This companion repository exists solely to publish the extension to Packagist/PIE; its releases are kept in sync with the main driver releases.
Documentation
https://learn.microsoft.com/sql/connect/php/microsoft-php-driver-for-sql-server
Issues & support
Please report driver bugs and questions in the main repository: https://github.com/microsoft/msphpsql/issues
Use this repository's issue tracker only for problems specific to the PIE / Packagist package.
License
MIT — see LICENSE.