PHPackages                             padam87/gls-bundle - 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. [API Development](/categories/api)
4. /
5. padam87/gls-bundle

ActiveLibrary[API Development](/categories/api)

padam87/gls-bundle
==================

GLS api wrapper for Symfony

v0.1.7(7y ago)2101[1 PRs](https://github.com/Padam87/GlsBundle/pulls)MITPHPPHP ~5.6|~7.0

Since Jul 21Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Padam87/GlsBundle)[ Packagist](https://packagist.org/packages/padam87/gls-bundle)[ RSS](/packages/padam87-gls-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (5)Versions (10)Used By (0)

GlsBundle
=========

[](#glsbundle)

GLS (East Europe) API wrapper for Symfony

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

[](#installation)

```
composer require padam87/gls-bundle

```

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

[](#configuration)

```
padam87_gls:
    wsdl: 'https://online.gls-hungary.com/webservices/soap_server.php?wsdl&ver=16.12.15.01'
    tracking_url: 'https://gls-group.eu/app/service/open/rest/HU/en/rstt001?match=%1$s'
    config:
        username: '000000000'
        password: '000000000'
        senderid: '000000000'
```

- **wsdl**: Refer to the API doc for the correct url for the country
- **tracking\_url**: The SOAP api does not provide a way to track packages, but GLS europe has an open API, used by the GLS websites
- **config**: username, password and senderid are the only required config options, but **you may use any valid option, and set it as a default value**

#### Optional defaults

[](#optional-defaults)

```
padam87_gls:
    parcel_wsdl:          'https://online.gls-hungary.com/webservices/soap_server.php?wsdl'
    tracking_url:         'https://gls-group.eu/app/service/open/rest/HU/en/rstt001?match={code}'
    pod_download_url:     'http://online.gls-hungary.com/tt_getPodsClass.php?userID={userid}&senderID={senderid}&pclFrom={code_from}&pclTo={code_to}&lang=hu&directDownload=1&fileType=PDF'
    config:               # Required
        userid:               ~ # Required, Example: required for pod download, GLS usually forgets to provide it unless you ask
        username:             ~ # Required
        password:             ~ # Required
        senderid:             ~ # Required
        sender_name: 'x'
        sender_address: 'x'
        sender_city: 'x'
        sender_zipcode: 'x'
        sender_country: 'HU'
        sender_contact: 'x'
        sender_phone: 'x'
        sender_email: 'x'
        pcount: 1
        printertemplate: 'A6'
        printit: true
```

### Usage

[](#usage)

#### Creating a parcel

[](#creating-a-parcel)

```
$api = $this->get('padam87_gls.parcel_api');
$response = $api->createParcel(
    [
        'consig_address' => $sa->getStreet(),
        'consig_city' => $sa->getCity(),
        'consig_country' => $sa->getCountry(),
        'consig_name' => $sa->getRecipient(),
        'consig_zipcode' => $sa->getZipCode(),
        'consig_contact' => $user->getName(),
        'consig_phone' => $user->getPhone(),
        'consig_email' => $user->getEmail(),
        'content' => $order->getCode(),
        'pickupdate' => (new \DateTime('tomorrow'))->format('Y-m-d'),
    ]
);

if (isset($response['successfull']) && $response['successfull']) {
    $pdf = base64_decode($response['pdfdata']);
    $pcls = $response['pcls'];
}
```

#### Parcel information (tracking)

[](#parcel-information-tracking)

```
$api = $this->get('padam87_gls.tracking_api');

if (false !== $info = $api->getParcelInformation('00')) {
    $status = $info['progressBar']['statusInfo'];
}
```

The API also allows to fetch multiple parcels in one request:

```
$provider->getParcelInformation('00,01', true)
```

The returned value will be an array, with the individual tracking codes as keys.

#### POD download

[](#pod-download)

```
$api = $this->get('padam87_gls.pod_download_api');
$pdf = $api->downloadPod($trackingCode);

if (null !== $pdf) {
    // file_put_contents($path, $pdf);
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance55

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~42 days

Total

8

Last Release

2670d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16ee53cf1050ad8f7ac884365abee80ded7fc531a57cadbdaef303de59e69222?d=identicon)[Padam87](/maintainers/Padam87)

---

Top Contributors

[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (14 commits)")

---

Tags

symfonygls

### Embed Badge

![Health badge](/badges/padam87-gls-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/padam87-gls-bundle/health.svg)](https://phpackages.com/packages/padam87-gls-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3376.9M38](/packages/a2lix-translation-form-bundle)[gheb/docusign-bundle

Symfony Bundle for electronic document signature with Docusign

3520.8k](/packages/gheb-docusign-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1714.8k8](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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