plokko/laravel-orthanc-restapi
最新稳定版本:0.1.4
Composer 安装命令:
composer require plokko/laravel-orthanc-restapi
包简介
Laravel Orthanc REST API integration
README 文档
README
Laravel integration for the Orthanc DICOM REST API. Provides a configurable HTTP client to call Orthanc endpoints from your application.
Requirements
- PHP 8.2+
- Laravel 12.x (or later)
- Orthanc server with REST API enabled
Installation
Composer install
Require the package via Composer:
composer require plokko/laravel-orthanc-restapi
Package discovery should register the service provider automatically. To register manually, add the provider to config/app.php:
'providers' => [ // ... Plokko\OrthancRestApi\OrthancRestApiServiceProvider::class, ],
Auth integration
The OrthancApi needs an auth token for access. To allow seamless integration with multiple systems no token retrival is defined, you should define it in the boot method on your AppServiceProvider:
class AppServiceProvider extends ServiceProvider { //... /** * Bootstrap any application services. */ public function boot(): void { /// Register OrthancAPI authenticator /// OrthancApiAuthInterface::setHandleTokenGeneration(function (?string $server) => YourImplementationOnHowToGetAnAuthToken()); } }
Configuration
You can publish default configuration file with the command:
php artisan vendor:publish --tag=laravel-orthanc-restapi:config
You should now see a laravel-orthanc-restapi.php file under your config folder.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-11-05