PHPackages                             webidentity/laravel-gls-printing-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webidentity/laravel-gls-printing-service

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webidentity/laravel-gls-printing-service
========================================

GLS printing labels service for Laravel framework.

07321[1 issues](https://github.com/mohavee/laravel-gls-printing-service/issues)[1 PRs](https://github.com/mohavee/laravel-gls-printing-service/pulls)PHP

Since Feb 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohavee/laravel-gls-printing-service)[ Packagist](https://packagist.org/packages/webidentity/laravel-gls-printing-service)[ RSS](/packages/webidentity-laravel-gls-printing-service/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Installation
------------

[](#installation)

### Step 1: Install package

[](#step-1-install-package)

Add the package in your composer.json by executing the command.

```
composer require webidentity/laravel-gls-printing-service
```

### Step 2: Configuration

[](#step-2-configuration)

First initialise the config file by running this command:

```
php artisan vendor:publish
```

With this command, initialize the configuration and modify the created file, located under `config/gls-printing-service.php`.

Configuration
-------------

[](#configuration)

```
return [
    'logger' => Webidentity\GLSPrintingService\BaseLogger::class,
    'log-http-communication' => true,
    'credentials' => [
        'username' => '...',
        'password' => '...',
        'senderid' => '...',
    ],
    'printer_templates' => [
        'A6' => 'A6 format, blank label',
        'A6_PP' => 'A6 format, preprinted label',
        'A6_ONA4' => 'A6 format, printed on A4',
        'A4_2x2' => 'A4 format, 4 labels on layout 2x2',
        'A4_4x1' => 'A4 format, 4 labels on layout 4x1',
    ],
    'url' => 'SK',
    'soap_urls' => [
        'HU' => 'https://online.gls-hungary.com/webservices/soap_server.php?wsdl',
        'SK' => 'http://online.gls-slovakia.sk/webservices/soap_server.php?wsdl',
        'CZ' => 'http://online.gls-czech.com/webservices/soap_server.php?wsdl',
        'RO' => 'http://online.gls-romania.ro/webservices/soap_server.php?wsdl',
        'SI' => 'http://connect.gls-slovenia.com/webservices/soap_server.php?wsdl',
        'HR' => 'http://online.gls-croatia.com/webservices/soap_server.php?wsdl',
    ]
];
```

Examples
--------

[](#examples)

U may call any endpoint against GLS api provided in wsdl file. You need pass array args which key is parameter name with values.

```
GLSPrintingService::printlabel([
    'parameter_name' => 'value'
]);
```

### Print Label

[](#print-label)

```
$data = array_merge(config('gls-printing-service.credentials'), [
        'sender_name' => '...',
        'sender_address' => '...',
        'sender_city' => '...',
        'sender_zipcode' => '...',
        'sender_country' => '...',
        'sender_contact' => '...',
        'sender_phone' => '...',
        'sender_email' => '...',
        'consig_name' => '...',
        'consig_address' => '...',
        'consig_city' => '...',
        'consig_zipcode' => '...',
        'consig_country' => '...',
        'consig_contact' => '...',
        'consig_phone' => '...',
        'consig_email' => '...',
        'pcount' => 1,
        'pickupdate' => '...',
        'content' => '',
        'clientref' => '',
        'codamount' => '',
        'codref' => '',
        'services' => [],
        'printertemplate' => 'A4_2x2',
        'printit' => true,
    ], ['timestamp' => GLSPrintingService::getTimestamp()]
);
$data['hash'] = GLSPrintingService::getglshash($data);

$response = GLSPrintingService::printlabel($data)

//pdfdata
echo base64_decode($response->pdfdata)
```

### Delete Label

[](#delete-label)

```
GLSPrintingService::deletelabels(array_merge(
    config('gls-printing-service.credentials'), ['pclids' => $pclids]
));
```

### Log Http Communication

[](#log-http-communication)

There is enabled logging (request and response) by default. U may follow these logs by executing the command

```
tail -f storage/logs/laravel.log
```

### Todos

[](#todos)

- XML serializer for endpoints which needs to work with xml

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a571feb4b92a778be4d5204e0d39178a30c51171c1feeba5f9fc836bdce18f50?d=identicon)[mohavee](/maintainers/mohavee)

---

Top Contributors

[![mohavee](https://avatars.githubusercontent.com/u/24735528?v=4)](https://github.com/mohavee "mohavee (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/webidentity-laravel-gls-printing-service/health.svg)

```
[![Health](https://phpackages.com/badges/webidentity-laravel-gls-printing-service/health.svg)](https://phpackages.com/packages/webidentity-laravel-gls-printing-service)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
