PHPackages                             signifly/gls-parcel-shop - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. signifly/gls-parcel-shop

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

signifly/gls-parcel-shop
========================

A simple wrapper for GLS Parcel Shop Webservice

v1.0.1(4y ago)26881MITPHPPHP ^7.2.5|^8.0

Since Oct 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/signifly/gls-parcel-shop)[ Packagist](https://packagist.org/packages/signifly/gls-parcel-shop)[ Docs](https://github.com/signifly/gls-parcel-shop)[ RSS](/packages/signifly-gls-parcel-shop/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

GLS Parcel Shop
===============

[](#gls-parcel-shop)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a71998fb1587db8d0d78b7fb093d3c352c583eb682b3bf13cbbe66c9b54ba57a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369676e69666c792f676c732d70617263656c2d73686f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/signifly/gls-parcel-shop)[![Build Status](https://camo.githubusercontent.com/f9a190e9fe84bf1ac0a7fe4ad536fe8cd1313aa347722c0123c28ea5f65ce45a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7369676e69666c792f676c732d70617263656c2d73686f702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/signifly/gls-parcel-shop)[![StyleCI](https://camo.githubusercontent.com/99649f96bb4ae61c0d71cf89ee6a35e2bba3747128065d72560223c91050f27d/68747470733a2f2f7374796c6563692e696f2f7265706f732f3231383731303533332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/218710533)[![Quality Score](https://camo.githubusercontent.com/850ba57c81b76ba9a658e23f8e502d47aa467e41eddb0374fd544048de4a389b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7369676e69666c792f676c732d70617263656c2d73686f702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/signifly/gls-parcel-shop)[![Total Downloads](https://camo.githubusercontent.com/e49d3ccc456f073c5bf6a37c0f94e7e537a7059fbad11cfccbd51ddc99d3b63b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7369676e69666c792f676c732d70617263656c2d73686f702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/signifly/gls-parcel-shop)

The `signifly/gls-parcel-shop` package is a simple wrapper for the GLS Parcel Shop Webservice written in PHP with a service provider for Laravel.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)

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

[](#installation)

You can install the package via composer:

```
composer require signifly/gls-parcel-shop
```

The package will automatically register itself.

You can optionally publish the config file with:

```
php artisan vendor:publish --tag="parcel-shop-config"
```

Usage
-----

[](#usage)

The GLS Parcel Shop webservice allows you to retrieve the following information:

- All parcel shops for a given country
- Find a specific parcel shop by its unique number
- Find parcel shops near an address
- Find parcel shops within a specific zip code, country

**Setting up the client**

*This can be skipped in Laravel as the client is bound to the service container.*

```
$client = GLSParcelShop::make('http://www.gls.dk/webservices_v4/wsShopFinder.asmx?WSDL');
```

**Resolving it from the Laravel Service Container**

```
use Signifly\ParcelShop\Contracts\ParcelShop;

$client = app(ParcelShop::class);
```

**Get all parcel shops**

```
$client->all('DK'); // returns Illuminate\Support\Collection
```

This request returns a collection of `Signifly\ParcelShop\Resources\ParcelShop` resources.

**Find a specific parcel shop**

```
$parcelShop = $client->find(12345); // returns Signifly\ParcelShop\Resources\ParcelShop

// The following getters are available for ParcelShop:
$parcelShop->number();
$parcelShop->company();
$parcelShop->streetName();
$parcelShop->streetName2();
$parcelShop->zipCode();
$parcelShop->city();
$parcelShop->countryCode();
$parcelShop->latitude();
$parcelShop->longitude();

$parcelShop->openingHours(); // returns a collection of OpeningHour resources

// Only available if you find parcel shops near an address
$parcelShop->distance(); // 875
$parcelShop->distanceInKm(); // 0.875

// Available getters for the OpeningHour resource
$openingHour->day(); // Monday
$openingHour->from(); // 08:00
$openingHour->to(); // 20:00
```

**Find parcel shops near an address**

```
// Params: Street, Zip Code, Country Code, Amount (optional, default to 5)

$client->nearest('Vesterbrogade 44', '1620', 'DK', 10); // returns Illuminate\Support\Collection
```

**Find parcel shops within a zip code**

```
$client->within('1620', 'DK'); // returns Illuminate\Support\Collection
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Morten Poul Jensen](https://github.com/pactode)
- [All contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~189 days

Total

4

Last Release

1818d ago

Major Versions

v0.0.2 → v1.0.02020-09-14

PHP version history (3 changes)v0.0.1PHP ^7.2

v1.0.0PHP ^7.2.5

v1.0.1PHP ^7.2.5|^8.0

### Community

Maintainers

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

---

Top Contributors

[![pactode](https://avatars.githubusercontent.com/u/5956778?v=4)](https://github.com/pactode "pactode (19 commits)")

---

Tags

glslaravelparcel-shops

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/signifly-gls-parcel-shop/health.svg)

```
[![Health](https://phpackages.com/badges/signifly-gls-parcel-shop/health.svg)](https://phpackages.com/packages/signifly-gls-parcel-shop)
```

###  Alternatives

[danharrin/livewire-rate-limiting

Apply rate limiters to Laravel Livewire actions.

40423.1M27](/packages/danharrin-livewire-rate-limiting)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[ricorocks-digital-agency/soap

A SOAP client that provides a clean interface for handling requests and responses.

4281.8M5](/packages/ricorocks-digital-agency-soap)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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