PHPackages                             pactode/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. pactode/gls-parcel-shop

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

pactode/gls-parcel-shop
=======================

A simple wrapper for GLS Parcel Shop Webservice

v1.0.0(2y ago)05MITPHPPHP ^8.0

Since Nov 7Pushed 2y agoCompare

[ Source](https://github.com/pactode/gls-parcel-shop)[ Packagist](https://packagist.org/packages/pactode/gls-parcel-shop)[ Docs](https://github.com/pactode/gls-parcel-shop)[ RSS](/packages/pactode-gls-parcel-shop/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

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

[](#gls-parcel-shop)

[![GitHub Workflow Status (main)](https://camo.githubusercontent.com/1ca456474addb0683a35339c0c8e8bf8b244cb20828e518d50a90d46b32e6204/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706163746f64652f676c732d70617263656c2d73686f702f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d726f756e642d737175617265)](https://github.com/pactode/gls-parcel-shop/actions)[![Total Downloads](https://camo.githubusercontent.com/fcb18367e23a5e16129b5825773aed7798f72454206b7bcbba8f39407fd3c4c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706163746f64652f676c732d70617263656c2d73686f70)](https://packagist.org/packages/pactode/gls-parcel-shop)[![Latest Version](https://camo.githubusercontent.com/70bd7e1925e2674346852d8904700f41dd8a377f15865b43aa8292b7d0b45ddf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706163746f64652f676c732d70617263656c2d73686f70)](https://packagist.org/packages/pactode/gls-parcel-shop)[![License](https://camo.githubusercontent.com/bac360cc96d61949de824a6d4ce5ddb734d3e1dd465079106332a1ce965852e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f706163746f64652f676c732d70617263656c2d73686f70)](https://packagist.org/packages/pactode/gls-parcel-shop)

The `pactode/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 pactode/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 Pactode\ParcelShop\Contracts\ParcelShop;

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

**Get all parcel shops**

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

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

**Find a specific parcel shop**

```
$parcelShop = $client->find(12345); // returns Pactode\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('Amaliegade 16', '1256', 'DK', 10); // returns Illuminate\Support\Collection
```

**Find parcel shops within a zip code**

```
$client->within('1256', '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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d71262eb73fd5080d7231a1909d54ad1cc6c2b495b99dea1b73a50ffd7d2139?d=identicon)[pactode](/maintainers/pactode)

---

Top Contributors

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

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pactode-gls-parcel-shop/health.svg)](https://phpackages.com/packages/pactode-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.0k](/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.4k5](/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)
