Search by

microsoft / pdo_sqlsrv

jahnvi480David-Engelsumitmsft

Microsoft Drivers for PHP for SQL Server (PDO_SQLSRV) - PDO driver for connecting to Microsoft SQL Server and Azure SQL.

Package info

github.com/microsoft/msphpsql_pdo_sqlsrv

Issues

Documentation

Type:php-ext

Ext name:ext-pdo_sqlsrv

pkg:composer/microsoft/pdo_sqlsrv

Statistics

Installs: 25 568

Dependents: 0

Suggesters: 0

Stars: 2

v5.14.0 2026-09-09 16:04 UTC

README

This repository is the PIE (PHP Installer for Extensions) companion package for the PDO_SQLSRV driver, part of the Microsoft Drivers for PHP for SQL Server. PIE is the official replacement for PECL, which is now deprecated.

Install

pie install microsoft/pdo_sqlsrv

pdo_sqlsrv builds on PHP's PDO extension, so PDO must be available (it ships with PHP by default). PIE enforces this via the ext-pdo requirement.

Names at a glance

Kind Value
GitHub repository microsoft/msphpsql_pdo_sqlsrv
PIE / Composer package name microsoft/pdo_sqlsrv
PHP extension name (php.ini) pdo_sqlsrv
Install command pie install microsoft/pdo_sqlsrv

Requirements

  • PHP 8.4 or newer for driver 5.14.0 and later (5.13.x requires PHP 8.3 or newer)
  • PHP PDO extension (ext-pdo, bundled with PHP)
  • 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.