szeidler / halda-php-sdk
Halda PHP SDK
v1.0.6
2019-05-15 11:53 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.3
- guzzlehttp/guzzle-services: ^1.1
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.7
README
Halda PHP SDK utilizes guzzle-services for an easy integration with Halda's Taximeter API.
Requirements
- PHP 5.6.0 or greater (PHP 7 recommended)
- Composer
- Guzzle
Installation
Add Halda PHP SDK as a composer dependency.
composer require szeidler/halda-php-sdk:^1.0
Usage
Returns the asset representation based on the resource url of the asset.
use Halda\HaldaClient; $client = new HaldaClient([ 'baseUrl' => '"https://www.halda.se/HaldaAppService/AppService.svc', 'code' => 'Azd9kDr2V', ]); $order = $client->lookupOrder(['Orderid' => 12345]); print $order->offsetGet('ExternalOrderNo');
Testing
This SDK includes PHPUnit as a composer require-dev
. Copy the phpunit.xml.dist
to phpunit.xml
and fill in with
your API testing credentials.
./vendor/bin/phpunit -c phpunit.xml
Credits
Stephan Zeidler for Ramsalt Lab AS
License
The MIT License (MIT)