PHPackages                             mmerlijn/dicom - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mmerlijn/dicom

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mmerlijn/dicom
==============

PHP DICOM

v0.6(10mo ago)032MITPHPPHP ^8.2

Since May 14Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/mmerlijn/dicom)[ Packagist](https://packagist.org/packages/mmerlijn/dicom)[ RSS](/packages/mmerlijn-dicom/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Install
=======

[](#install)

`composer require mmerlijn/dicom`

Usage
=====

[](#usage)

```
$filename = '_.dcm';
$dicom = \mmerlijn\dicom\Nanodicom::factory($filename);

$dicom->parse(array(array(0x0010, 0x0010)));
// Only a small subset of the dictionary entries were loaded
echo $dicom->profiler_diff('parse')."";

echo 'Patient name if exists: '.$dicom->value(0x0010, 0x0010).""; // Patient Name if exists

// This will return nothing because dictionaries were not loaded
echo 'Patient name should be empty here: '.$dicom->PatientName."";
```

Store jpg file
==============

[](#store-jpg-file)

```
use mmerlijn\dicom\Nanodicom;

$filename = '_.dcm';

$dicom  = Nanodicom::factory($filename, 'Pixeler');
if ( ! file_exists($filename.'.0.jpg'))
{
try {

        $images = $dicom->get_images();
    }catch (Exception $e) {
        echo "Error: ".$e->getMessage()."\n";
        exit;
    }

    // If using another library, for example, imagemagick, the following should be done:
    // $images = $dicom->set_driver('imagick')->get_images();

    if ($images !== FALSE)
    {
        foreach ($images as $index => $image)
        {
            // Defaults to jpg
            $dicom->write_image($image, 'dump.0.jpg');
            // To write another format, pass the format in second parameter.
            // This will write a png image instead
            // $test->write_image($image, $dir.$file.'.'.$index, 'png');
        }
    }
    else
    {
        echo "There are no DICOM images or transfer syntax not supported yet.\n";
    }
    $images = NULL;
}
else
{
echo "Image already exists\n";
}
unset($dicom);
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

4

Last Release

301d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84de98c9a1803dbd730aabade43023ab14d7df77a5e71c012ecdd1150b300213?d=identicon)[mmerlijn](/maintainers/mmerlijn)

---

Top Contributors

[![mmerlijn](https://avatars.githubusercontent.com/u/8401393?v=4)](https://github.com/mmerlijn "mmerlijn (7 commits)")

---

Tags

dicom

### Embed Badge

![Health badge](/badges/mmerlijn-dicom/health.svg)

```
[![Health](https://phpackages.com/badges/mmerlijn-dicom/health.svg)](https://phpackages.com/packages/mmerlijn-dicom)
```

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[stubbles/core

103.4k1](/packages/stubbles-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
