PHPackages                             webapix/mygls-sdk - 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. webapix/mygls-sdk

ActiveLibrary[API Development](/categories/api)

webapix/mygls-sdk
=================

An lightweight php SDK for the MyGLS REST API

v3.0.1(5mo ago)29183.3k↓11.1%123MITPHPPHP ^8.1CI passing

Since Sep 15Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/webapix/mygls-sdk)[ Packagist](https://packagist.org/packages/webapix/mygls-sdk)[ Docs](https://github.com/webapix/mygls-sdk)[ Fund](http://patrons.webapix.hu)[ RSS](/packages/webapix-mygls-sdk/feed)WikiDiscussions 2.x Synced 2w ago

READMEChangelog (10)Dependencies (8)Versions (26)Used By (3)

GLS SDK for JSON REST API
=========================

[](#gls-sdk-for-json-rest-api)

[![Tests](https://github.com/webapix/mygls-sdk/workflows/Tests/badge.svg)](https://github.com/webapix/mygls-sdk/actions?query=workflow%3ATests+branch%3Amaster)[![StyleCI](https://camo.githubusercontent.com/e0948ac9d0f310f95cd25a6b9580193c1e295743fe23cc606dccbbaa4ff050b5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3239353636363134302f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/295666140?branch=master)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

An unofficial lightweight PHP SDK for the MyGLS REST API.

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

[](#installation)

You can install the package via composer:

```
composer require webapix/mygls-sdk
```

Usage
-----

[](#usage)

```
use GuzzleHttp\Client as HttpClient;
use Webapix\GLS\Client;
use Webapix\GLS\Models\Parcel;
use Webapix\GLS\Services\SMS;
use Webapix\GLS\Requests\PrintLabels;

$parcel = (new Parcel)
    ->setClientNumber(123456789)
    ->setPickupAddress()
    ->setDeliveryInfo()
    ->when($order->cutomerWantsSmsAlert(), function (Parcel $parcel) use ($order) {
        return $parcel->addService(
            new SMS($order->phone_number, 'Your package (#ParcelNr#) is on its way to GLS facility!')
        );
    });

$client = new Client(new HttpClient);

$request = PrintLabels;
$request->addParcel($parcel);

/** @var \Webapix\GLS\Responses\PrintLabels $response */
$response = $client->on($account)->request($request);

if ($response->successfull()) {

    // get the pdf
    $response->getPdf();
}
```

You can find more information and examples in our [wiki](https://github.com/webapix/mygls-sdk/wiki).

Docs
----

[](#docs)

[Package docs](https://github.com/webapix/mygls-sdk/wiki)
[Official GLS Docs](https://api.mygls.hu/)

Testing
-------

[](#testing)

```
composer test
```

Postcardware
------------

[](#postcardware)

According to the postcardware concept, if you use the software for your project(s) we would appreciate to receive a postcard of your hometown.

Please send it to:

WEBAPIX KFT. Kőris utca 2/E, 2/1
2051 Biatorbágy
Hungary

Support us
----------

[](#support-us)

If you find our packages useful and would like to support our work in maintaining and regularly updating them, consider becoming a patron. Any size of donation is welcome and highly appreciated.

Contributing
------------

[](#contributing)

Contributions are welcome! When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [WEBAPIX Kft.](https://webapix.hu)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance70

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~95 days

Recently: every ~205 days

Total

22

Last Release

168d ago

Major Versions

v1.7.3 → v2.0.02023-12-04

v2.0.1 → v3.0.02025-02-21

PHP version history (3 changes)v1.0.0PHP ^7.1

v1.4.0PHP ^7.1|^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/637b3b9ea15b2873d711b6966e49edb88700a50482f017718024968a1fa494ac?d=identicon)[zsocakave](/maintainers/zsocakave)

---

Top Contributors

[![zsocakave](https://avatars.githubusercontent.com/u/17034280?v=4)](https://github.com/zsocakave "zsocakave (36 commits)")[![zakariasn](https://avatars.githubusercontent.com/u/78422285?v=4)](https://github.com/zakariasn "zakariasn (5 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![onetdev](https://avatars.githubusercontent.com/u/577015?v=4)](https://github.com/onetdev "onetdev (3 commits)")[![bnagywebapixhu](https://avatars.githubusercontent.com/u/16180567?v=4)](https://github.com/bnagywebapixhu "bnagywebapixhu (2 commits)")[![nxu](https://avatars.githubusercontent.com/u/6393515?v=4)](https://github.com/nxu "nxu (2 commits)")[![vencelkatai](https://avatars.githubusercontent.com/u/60509037?v=4)](https://github.com/vencelkatai "vencelkatai (1 commits)")[![PavelWeirich](https://avatars.githubusercontent.com/u/8134599?v=4)](https://github.com/PavelWeirich "PavelWeirich (1 commits)")[![hoffmann-andras](https://avatars.githubusercontent.com/u/73634763?v=4)](https://github.com/hoffmann-andras "hoffmann-andras (1 commits)")

---

Tags

glsmyglsphpwebapixMyGLS

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webapix-mygls-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/webapix-mygls-sdk/health.svg)](https://phpackages.com/packages/webapix-mygls-sdk)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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