plokko / laravel-orthanc-restapi
Laravel Orthanc REST API integration
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/plokko/laravel-orthanc-restapi
Requires
- php: >=8.2
- laravel/framework: ^11.0|^12.0
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.