PHP code example of trainjunkies / hsp
1. Go to this page and download the library: Download trainjunkies/hsp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
trainjunkies / hsp example snippets
nt = \Trainjunkies\Hsp\ClientFactory::create(
'USERNAME',
'PASSWORD'
);
try {
$result = $client->getServiceDetails('SOME-RID-VALUE');
} catch (Exception $e) {
die($e->getMessage());
}
docker-compose run --rm -e PHP_IDE_CONFIG="serverName=trainjunkies_hsp_dev_container" hsp bin/phpspec r spec/Trainjunkies/Hsp/ClientSpec.php