mkinyua53/laravel-dicom
最新稳定版本:0.1.1
Composer 安装命令:
composer require mkinyua53/laravel-dicom
包简介
Laravel package based on https://pear.php.net/manual/en/package.fileformats.file-dicom.intro.php
README 文档
README
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
统计信息
- 总下载量: 146
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-02
