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(2mo ago)31152.1k↑47.5%123MITPHPPHP ^8.1CI passing

Since Sep 15Pushed 2mo 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 1mo 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

61

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity46

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

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

77d 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 (2 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

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[webapix/laravel-mygls

Laravel version of the MyGLS REST API integration.

1524.8k](/packages/webapix-laravel-mygls)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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