← Projects
Library · PHP

class_dicom.php

A PHP library for working with DICOM medical images — tag reading and writing, JPEG conversion, compression, multiframe-to-video, and DICOM networking — driving the DCMTK toolkit under a typed, namespaced PHP API.

Language  PHP 8.5License  Apache-2.0Backs onto  DCMTK

Overview

The library wraps the DCMTK command-line toolkit in a first-class object API (DICOM\*, PACS\*) with value objects for dates, names, and UIDs. It reads and writes DICOM tags, converts to and from JPEG, compresses and decompresses, renders multiframe studies to video, and speaks the DICOM network protocol — C-ECHO and C-STORE, sending and receiving.

Version 2 is a clean-room rewrite on PHP 8.5. The original procedural surface is kept as a compatibility shim so v1 code keeps running unchanged, now emitting deprecation notices that point at the v2 equivalents. Originally created by Dean Vaughan.

What it does

01Tags

Read and write DICOM tags through a typed API with value objects.

02Imaging

JPEG conversion both ways, compression, and multiframe-to-video.

03Networking

DICOM C-ECHO and C-STORE — send and receive.

04Compatible

A v1 shim keeps older procedural code running on the v2 engine.