setono/gls-webservice-php-sdk
A PHP SDK for the GLS webservice
Maintainers
v2.2.0
2026-04-13 09:52 UTC
Requires
- php: >=8.2
- ext-soap: *
- guzzlehttp/psr7: ^2.7
- psr/http-message: ^1.1 || ^2.0
Requires (Dev)
- setono/code-quality-pack: ^3.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT d87753c3da5ec88ee148af457ac44d3b7212fcf9
- Joachim LΓΈvgaard <joachim.woop@loevgaard.dk>
README
π Latest Version
π Software License
π Build Status
π Code Coverage
π Mutation testing
A PHP SDK for the GLS webservice which is very commonly used to search for nearby pickup points.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
$ composer require setono/gls-webservice-php-sdk
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
<?php use Setono\GLS\Webservice\Client\Client; use Setono\GLS\Webservice\Factory\SoapClientFactory; use Setono\GLS\Webservice\Model\ParcelShop; $client = new Client(new SoapClientFactory('https://www.gls.dk/webservices_v4/wsShopFinder.asmx?WSDL')); /** @var ParcelShop[] $parcelShops */ $parcelShops = $client->searchNearestParcelShops('Street', '12313', 'DK');
