setono / gls-webservice-php-sdk
A PHP SDK for the GLS webservice
Installs: 45 069
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.4
- ext-soap: *
- guzzlehttp/psr7: ^1.9 || ^2.0
- psr/http-message: ^1.0
Requires (Dev)
- infection/infection: ^0.26
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.17
- setono/code-quality-pack: ^2.2
README
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');