Skip to main content

Docker PHP with MS SQL Server

Docker images based on official PHP images with Microsoft SQL Server drivers pre-installed. Built for production, optimized for performance.

Key Features

Pre-installed Drivers

Microsoft SQL Server drivers (sqlsrv and pdo_sqlsrv) ready to use out of the box

Multiple PHP Versions

Support for PHP 8.1, 8.2, 8.3, and 8.4 with regular updates

Alpine & Debian Variants

Choose between lightweight Alpine or full-featured Debian base images

FPM & CLI

Both PHP-FPM and CLI configurations available for any use case

Rich Extensions

Includes bcmath, ds, exif, gd, intl, opcache, pcntl, redis, and zip extensions

Swoole Support

Optional Swoole support for high-performance asynchronous applications

Development Tools

Composer, Node.js, npm, and yarn included in CLI images

Weekly Builds

Automatically rebuilt weekly to stay up-to-date with upstream changes

Quick Start

Get started with a simple pull and run:
docker pull namoshek/php-mssql:8.4-cli-alpine

Image Variants

Choose the right image for your needs:

Debian Images

Full-featured Debian-based images with comprehensive tooling

Alpine Images

Lightweight Alpine Linux images optimized for size

Swoole Images

High-performance images with Swoole extension

Documentation

Quickstart Guide

Get up and running in minutes

Usage Examples

Learn how to use the images effectively

Available Tags

Browse all available image tags

Contributing

Help improve the project

Build docs developers (and LLMs) love