1. Go to this page and download the library: Download avadolearning/bls-sdk-php 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/ */
avadolearning / bls-sdk-php example snippets
use AvadoLearning\BusinessLogicServices\SoapClientFactory;
// These values should come from your configuration
define('BLS_URL', 'https://test.example.com');
define('BLS_AUTH_TOKEN', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX');
$factory = new SoapClientFactory(BLS_URL, array( // SoapClient options
'cache_wsdl' => WSDL_CACHE_NONE,
'connection_timeout' => 30,
'exceptions' => true,
'keep_alive' => false,
'uri' => 'http://tempuri.org/',
'soap_version' => SOAP_1_2,
'trace' => true,
), array( // Services
'SalesLogix',
), array( // Request preprocessors
new WsaRequestPreprocessor(),
new BlsAuthTokenRequestPreprocessor(BLS_AUTH_TOKEN),
));