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

ActiveLibrary[API Development](/categories/api)

webapix/laravel-mygls
=====================

Laravel version of the MyGLS REST API integration.

v3.2.0(2mo ago)1526.2k↓28%5MITPHPPHP ^8.1|^8.2|^8.3|^8.4|^8.5CI passing

Since Oct 15Pushed 2mo ago2 watchersCompare

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

READMEChangelog (9)Dependencies (15)Versions (11)Used By (0)

Laravel MyGLS JSON REST API
===========================

[](#laravel-mygls-json-rest-api)

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

This is the Laravel version of our [MyGLS REST API integration](https://github.com/webapix/mygls-sdk).

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

[](#installation)

You can install the package via composer:

```
composer require webapix/laravel-mygls
```

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

[](#configuration)

### Publish package

[](#publish-package)

Create config/my-gls.php configuration file using the following artisan command:

```
php artisan vendor:publish --provider="Webapix\GLS\Laravel\MyGlsServiceProvider"
```

### Add your account

[](#add-your-account)

Open .env file and set:

MYGLS\_API\_URL
MYGLS\_CLIENT\_NUMBER
MYGLS\_USERNAME
MYGLS\_PASSWORD

Usage
-----

[](#usage)

```
use \Webapix\GLS\Requests\GetParcelStatuses;

$request = new GetParcelStatuses(12345678);

/** @var \Webapix\GLS\Responses\GetParcelStatuses $response */
$response = app(\Webapix\GLS\Laravel\Client::class)->request($request);
// Or use the facade: $response = MyGls::request($request);

if ($response->successful()) {

    /** @var \Webapix\GLS\Models\ParcelStatus[] */
    $parcelStatusList = $response->parcelStatusList();

    foreach ($parcelStatusList as $parcelStatus) {
        $parcelStatus->depotCity();
        $parcelStatus->depotNumber();
        $parcelStatus->statusCode();
        $parcelStatus->statusDate();
        $parcelStatus->statusDescription();
        $parcelStatus->statusInfo();
    }

}
```

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

### Accounts

[](#accounts)

By default, the MyGLS client use the default account.

You can use multiple accounts:

```
// add your new account to config/my-gls.php
[
    'accounts' => [
        'my-new-account' => [
            'api_url' => '',
            'client_number' => '',
            'username' => '',
            'password' => '',
        ]
    ]
]

MyGls::on('my-new-account')->request(...);
```

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

59

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~253 days

Recently: every ~145 days

Total

9

Last Release

61d ago

Major Versions

v1.4.0 → v2.0.02025-02-21

v2.0.0 → v3.0.02025-04-22

PHP version history (4 changes)v1.0.0PHP &gt;=7.2

v1.3.0PHP ^7.2|^8.0|^8.1|^8.2

v1.4.0PHP ^7.2|^8.0|^8.1|^8.2|^8.3

v3.1.0PHP ^8.1|^8.2|^8.3|^8.4|^8.5

### 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 (15 commits)")[![greksazoo](https://avatars.githubusercontent.com/u/17304994?v=4)](https://github.com/greksazoo "greksazoo (5 commits)")[![torosegon](https://avatars.githubusercontent.com/u/1849338?v=4)](https://github.com/torosegon "torosegon (4 commits)")[![webakos](https://avatars.githubusercontent.com/u/181354500?v=4)](https://github.com/webakos "webakos (2 commits)")[![Priebojp](https://avatars.githubusercontent.com/u/34541091?v=4)](https://github.com/Priebojp "Priebojp (1 commits)")

---

Tags

glslaravelmyglsphplaravelwebapixMyGLS

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

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