Looking to hire Laravel developers? Try LaraJobs

laravel-dicom maintained by mkinyua53

Description
Laravel package based on https://pear.php.net/manual/en/package.fileformats.file-dicom.intro.php
Author
Last update
2024/09/02 23:57 (dev-master)
License
Downloads
155

Comments
comments powered by Disqus

Very short description of the package

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require mkinyua53/laravel-dicom

Usage

// Usage description here
use Mkinyua53\LaravelDicom\LaravelDicom;

$dicom = new LaravelDicom;
$res = $dicom->parse($file) // $request->file('file')

if (! $res) {
  // failed to parse file
}

echo 'StudyDate : '.$dicom->getValue(0x0008, 0x0020)."\n";
echo 'Image Date : '.$dicom->getValue(0x0008, 0x0023)."\n";
echo 'Image Type : '.$dicom->getValue(0x0008, 0x0008)."\n";
echo 'Study Time : '.$dicom->getValue(0x0008, 0x0030)."\n";
echo 'Institution Name : '.$dicom->getValue(0x0008, 0x0080)."\n";
echo 'Manufacturer : '.$dicom->getValue(0x0008, 0x0070)."\n";
echo 'Manufacturer Model Name : '.$dicom->getValue(0x0008, 0x1090)."\n";
// or using element name
echo 'Patient Name : '.$dicom->getValue('PatientName')."\n";
echo 'Patient Age : '.$dicom->getValue('PatientAge')."\n";

// dump a PGM image from the file data
$res = $dicom->dumpImage('test.pgm');
if (! $res) {
    // failed to output image
}

Testing

No tests defined yet.

# composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email mwatha.kinyua@hotmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Extras

Find me on X @MKinyua53

Buy me a ☕️