mkinyua53 / laravel-dicom
基于 https://pear.php.net/manual/en/package.fileformats.file-dicom.intro.php 的 Laravel 扩展包
0.1.1
2024-09-02 21:57 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-03 21:09:17 UTC
README
安装
您可以通过 composer 安装此包
composer require mkinyua53/laravel-dicom
使用方法
// 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
}
测试
尚未定义测试。
# composer test
更新日志
有关最近更改的更多信息,请参阅 更新日志
贡献
有关详细信息,请参阅 贡献指南
安全
如果您发现任何安全相关的问题,请通过电子邮件 mwatha.kinyua@hotmail.com 反馈,而不是使用问题跟踪器。
鸣谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件
Laravel 扩展包模板
此包是使用 Laravel 扩展包模板 生成的。
附加信息
在 X 上找到我 @MKinyua53