plokko/laravel-orthanc-restapi

There is no license information available for the latest version (0.1.4) of this package.

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

0.1.4 2025-11-06 13:07 UTC

This package is auto-updated.

Last update: 2025-11-06 13:07:54 UTC


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.