setono/gls-webservice-bundle

Symfony bundle that integrates the GLS webservice PHP SDK

Maintainers

👁 loevgaard

Package info

github.com/Setono/GlsWebserviceBundle

Type:symfony-bundle

pkg:composer/setono/gls-webservice-bundle

Statistics

Installs: 53 220

Dependents: 3

Suggesters: 3

Stars: 0

Open Issues: 0

v1.4.0 2026-05-04 10:03 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ed3b0a3b16248f74284f5745327360597dbeefb4

symfonyglssetono

This package is auto-updated.

Last update: 2026-06-04 10:19:42 UTC


README

👁 Latest Version
👁 Software License
👁 Build Status

Integrates the GLS webservice PHP SDK into Symfony.

Installation

Step 1: Download the bundle

composer require setono/gls-webservice-bundle

Step 2: Enable the bundle

The bundle will automatically be enabled with Symfony Flex. Otherwise add it to config/bundles.php yourself.

Usage

Now you can inject the ClientInterface into your service:

<?php

use Setono\GLS\Webservice\Client\ClientInterface;

final class YourService
{
 public function __construct(private readonly ClientInterface $client)
 {
 }
}

With autowiring this will work out of the box. If you're not using autowiring you have to inject it in your service definition:

<?php

use Setono\GLS\Webservice\Client\ClientInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

use function Symfony\Component\DependencyInjection\Loader\Configurator\service;

return static function (ContainerConfigurator $container): void {
 $container->services()
 ->set(YourService::class)
 ->args([service(ClientInterface::class)]);
};