Download the PHP package aurabx/dcmtk-php without Composer

On this page you can find all versions of the php package aurabx/dcmtk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dcmtk-php

dcmtk-php

A PHP wrapper for DCMTK (DICOM Toolkit), providing utilities for working with DICOM medical imaging files.

This is a modernized fork of class_dicom.php by Dean Vaughan, updated for PHP 8.3+ and maintained by Aurabox.

Requirements

Installation

1. Install DCMTK

macOS (Homebrew):

Ubuntu/Debian:

Windows: Download from DCMTK releases and add to PATH.

2. Install via Composer

Configuration

The library auto-detects DCMTK binaries in common locations (/opt/homebrew/bin, /usr/local/bin). To specify a custom path:

Environment variable:

Or in PHP:

Usage

Reading DICOM Tags

Writing DICOM Tags

Converting DICOM to JPEG

Creating Thumbnails

Compression/Decompression

DICOM Network Operations

C-ECHO (DICOM Ping)

C-STORE (Send DICOM)

Store SCP (Receive DICOM)

Validating DICOM Files

API Reference

Tag Class

Method Description
setFilePath(string $file) Set the DICOM file to work with
loadTags(bool $uidNames = true) Load all tags from the file
getTag(string $group, string $element) Get a specific tag value
writeTags(array $tags) Write tags to the file

Convert Class

Method Description
dcmToJpg() Convert DICOM to JPEG
dcmToThumbnail() Create a thumbnail
uncompress(string $newFile = '') Decompress JPEG DICOM
compressToJpeg(string $newFile = '') Compress to JPEG lossless
multiFrameToVideo(string $format, int $framerate) Convert multi-frame to video

Net Class

Method Description
echoscu(string $host, int $port, ...) DICOM echo (ping)
sendDcm(string $host, int $port, ...) Send DICOM file(s)
storeServer(string $dcmDir, ...) Start a DICOM storage server

Testing

Tests use mocked command execution and don't require DCMTK binaries.

License

MIT License - see licence.txt

Credits


All versions of dcmtk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aurabx/dcmtk-php contains the following files

Loading the files please wait ...